javascript - low cost page transitions -
this question has answer here:
- how show ajax requests in url? 7 answers
i'm relatively new web development odd question. want part of site load new page. significant part doen't need change. load content div.
$('#rightdiv').load("about.html");
the downside address doesn't change, believe there solution don't know how. have tried googleing can't find on it. love see both solution , how sollution called (hope know mean).
thank time , effort.
browsers supporting html5's pushstate
let change path:
$('#rightdiv').load("about.html", function pushstate(){ if(history && history.pushstate){ history.pushstate('','','about.html'); } });
Comments
Post a Comment