How would I add onpopstate, to an ajaxfunction? (not jQuery)
I understand that onpushstate, changes my url, and that I need onpopstate, to have some effect of it, when using back/forward or refresh-button.. (Hoping this will also allow me to share the page as I see it), and that I maybe need onreplacestate, for navigating between html pages.. I have 4 different pages, index, page1,2 and 3, and some ajax functions in pages 1- 3.. As it is, I will have the correct ajax content loaded, when using backbutton from page 2 to page 1, 3-2 etc, but without styling..
I understand that onpushstate, changes my url, and that I need onpopstate, to have some effect of it, when using back/forward or refresh-button.. (Hoping this will also allow me to share the page as I see it), and that I maybe need onreplacestate, for navigating between html pages.. I have 4 different pages, index, page1,2 and 3, and some ajax functions in pages 1- 3.. As it is, I will have the correct ajax content loaded, when using backbutton from page 2 to page 1, 3-2 etc, but without styling..