mdn-ajax-nav-example
mdn-ajax-nav-example copied to clipboard
example code from https://developer.mozilla.org/en-US/docs/Web/Guide/DOM/Manipulating_the_browser_history/Example
Is possible execute javascript after load the content? How can I do this? Sorry for these questions. I do not seen other option to contact. :/
I see firefox picks up `onpopstate = function (oEvent) { bUpdateURL = false; oPageInfo.title = oEvent.state.title; oPageInfo.url = oEvent.state.url; getPage(); };` but chrome does not. Adding the `window.onpopstate` gets it...
Discovered in Chrome 64.0.3282.119 Steps to reproduce: 1. Navigate to: first_page.php 2. Click "Second Page" link. 3. Use browser's Back button to go back to first_page.php Unexpected Results: 1. Content...
How to load the href links of the content that was loaded by ajax navigation. They not working after that the first content is loaded.
a safeguard for whether state is defined, const is not supported in strict mode. And onpopstate requires window prefix, according to spec. Tested on Firefox 26 and Chrome 32.