'onBeforeUnload' Example : onBeforeUnload : Event onMethod JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Event onMethod » onBeforeUnload »

 

'onBeforeUnload' Example



    
<head>
<script language="JavaScript">
    function function1() { 
        self.close() 
    }
    function function2() {
        window.open("http://www.navioo.com/""""width=300, height=200, left=200, noresize, top=200")
    
</script>
</head>
<body onbeforeunload="function2()">
    <input type="button" value="Unload the document" onclick="function1()">
</body>
</html>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Event onMethod
» onBeforeUnload