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

Using 'OR' and 'AND' in SQL Server -

c++ - NetBeans Remote Development with additional configuration -

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