javascript - How to let <a href..> not refresh the page -


i have div, in link href tag:

<a href="banana.html"><div id="somediv">some div</div></a> 

when click on div, entire page unloads , reloads banana.html. however, i'm using websocket , need part of page reload, there way change window url without refreshing page?

thanks!

probably want use ajax this, jquery has cool function pretty versatile:

http://api.jquery.com/load/


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -