Detect if the user has used the back button

前端 未结 4 647
死守一世寂寞
死守一世寂寞 2021-01-04 20:08

My webpage runs a javascript function when the page is loaded. However, I don\'t want the function to run if the user comes back to this page using the back button. How can

4条回答
  •  再見小時候
    2021-01-04 20:37

    I think studying the way Struts handles duplicate form submissions could help you.

    Some links:

    http://www.techfaq360.com/tutorial/multiclick.jsp

    http://www.java-samples.com/showtutorial.php?tutorialid=582

    http://www.xinotes.org/notes/note/369/

提交回复
热议问题