I have a page on my site that has a tab bar. It works with jQuery, but it works so that the contents of all tabs are loaded initially. I need to implement this: the content of each tab is in a separate file and is connected as soon as I switch to the tab (the whole page is not updated).

This is easy to do with ajax, but plus I need everything to change the link to the page, i.e., for example, the tab bar on www.mysite.ru/tabs , when you click on a certain tab, the link should look like www.mysite.ru/tabs/tab1.php . Of course, this can be done with a full page reload, but I would like to use ajax.

Thank you in advance.

  • I completely forgot, a vivid example of what needs to be done here: vk.com/edit . Only links will look different. - Vladimir Fedulkin
  • one
    there - HTML5 history API - Zowie
  • How to apply it? Is there an example? - Vladimir Fedulkin
  • there is everything! - Zowie
  • 2
    You correctly noticed, at the HC this was also already discussed 100,500 times. Is it a bit early for you to judge a resource? .. I somehow have more than one, wait, maybe — someone can google for you - Zowie

0