What is the expected behavior of Javascript when you do a soft refresh on a web page?
I know that when you refresh a page, most web browsers will preserve values entered into form elements on a page. But it becomes harder to predict what will happen on a refresh when half of the page is dynamically generated.
My question is a little more general than that, though. I want to know what the prescribed behavior is for a web browser when a page will dynamic content is refreshed. In particular:
- What Javascript gets rerun.
- How is the DOM altered on the refresh.
- How are form values "floated" to the proper place in the DOM after a refresh.
- What other quirky stuff goes on?