I have a button, if user clicks on that button I am opening a external window as follows:
function btnClick(){
window.open("http://localhost/index.html");
/* I'LL WRITE SOME OTHER CODE AFTER THIS */
}
I want the javascript function to wait for that window to get closed before executing the rest of my code. Is there any way of doing that ?