I would like to perform a JavaScript (or jQuery) initialization function - let's call it Cache is here : To avoid suspicion: which I have tried so far Searching for other relevant answers. I still could not find what I'm looking for. Thanks in advance! Maybe you do not want to do exactly that, but about a session cookie or HTML storage flag How in See code and answers here: For example myPageInit () After the page is completely full.
myPageInit () should run only The page is initially loaded or if the user Forcing one page to refresh (i.e. the browser reload button presses, hits
F5 , etc.).
www.mypage.com = & gt;
myPageInit () page runs after loading.
myPageInit () after reloading the page.
& lt; a href = "www.cnn.com" & gt; ... ).
www.mypage.com = & gt;
myPageInit () runs after the No page.
$ ( window). Load () - I think it used to work, but it appears on modern browsers when the user presses the back button (see note on the comment)
$ (window) .ready () - It also shows the fire on both the initial load and the back button.
No comments:
Post a Comment