0

I have a div, which is in a link href tag:

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

when I click on the div, the entire page unloads and reloads with banana.html. However, I'm using websocket and need only a part of the page to reload, is there a way to change the window url without refreshing the page?

Thanks!

Marc Audet
  • 46,011
  • 11
  • 63
  • 83
Maria
  • 3,455
  • 7
  • 34
  • 47

1 Answers1

0

probably want to use ajax for this, jquery has a cool function that is pretty versatile:

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

haz0rd
  • 260
  • 1
  • 8