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

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -