Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

window close function in javascript

var win = window.open("http://www.google.com");

var winClosed = setInterval(function () {

    if (win.closed) {
        clearInterval(winClosed);
        foo(); //Call your function here
    }

}, 250);
 
PREVIOUS NEXT
Tagged: #window #close #function #javascript
ADD COMMENT
Topic
Name
4+6 =