javascript - low cost page transitions -


this question has answer here:

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

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -