problem with a popup window

J

Joseph

I don't understand why the code below gives me an error, it says ' member not found ' as if ' win ' did not exist?
Any idea?

var win;
function popwin(strURL)
{
//alert(strURL);
win = window.open(strURL,'_self','width=520,height=410,left=0,top=0,modal=yes,dialog=yes, location=1, toolbar=0, directories=0,
status=1, menubar=1, scrollbars=1, resizable=1');
if (!win.closed) { // Its open
win.focus(); // For some reason this line causes an error: member not found
}
}

TIA
Joseph

philippeoget at hotmail dot com
http://www.geocities.com/philippeoget/a2z/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,150
Latest member
MakersCBDReviews
Top