Is there a cross-browser onload event when clicking the back button?

后端 未结 15 2317
被撕碎了的回忆
被撕碎了的回忆 2020-11-21 22:46

For all major browsers (except IE), the JavaScript onload event doesn’t fire when the page loads as a result of a back button operation — it only fires when the

15条回答
  •  长发绾君心
    2020-11-21 23:27

    Unload event is not working fine on IE 9. I tried it with load event (onload()), it is working fine on IE 9 and FF5.

    Example:

    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
        pageEncoding="ISO-8859-1"%>
    
    
    
    
    Insert title here
    
    
    
    
        

    body.jsp

    Your Full Name:


提交回复
热议问题