Click here to Skip to main content
15,919,931 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have method with different function which has 10 lines of code....
in 5th line I've window.open() statement...
Rest of the lines from 6th line should execute only on close of the above window.
How do we do in java script

What I have tried:

JavaScript


var url= "http://www.google.com"
var win = window.open(url,"","");
--retrun value = Yes
if(win.retrunVal){
.....
}
Posted
Updated 10-Jan-17 23:09pm

1 solution

Not so simple as you might think: Javascript open new tab, and wait for it to close - Stack Overflow[^] may help.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900