![]() The first part depends on how the page is implemented. One is recovering the page status when click "Back" button, so all the dynamic content is loaded, some expander are expanded or collapsed. If pageA is just a static page without dynamic content (loaded after 'load' event, the browser should remember the scroll position when you go back.įor dynamic content, there at least includes two parts. Either in the cookie, or in the url hash. To make the browser remember the scroll position in this case, you have to store the scroll position and status (what content have been loaded) somewhere before navigating away. Because the browser scrolls before the 'load' event. ![]() If the content is loaded after page "load" event firing, then the back button would not take you back to the position you were. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |