I have a need to close a popup window after a certain amount of time. I have tried many different ways to do it with no luck in IE. Works fine in Firefox, Safari, and Google Chrome.
It seems to be a problem with IE referencing the window I have opened by the variable name.
Here is the code I've been using:
var newWindow ;
function FNUMBER(SOP)
{
newWindow = window.open(SOP,'','left=0px,top=0px,width=800,height=670');
setTimeout('newWindow.close();',3000);
}
This function is called from another button in the html file that opens a .pdf document inside a browser window.
No matter what I try to do, IE will not reference newWindow to do anything.
Thanks for any help.