Guest_imported
New member
- Jan 1, 1970
- 0
I am new to JavaScripts and I would really appreciate your help. I am using the following script on my site (econlinks.com) to have a window open when a user clicks on a link (and when the user clicks on some other link, I would like to have the same window open again):
function wintwo(url)
{
win = window.open(url,"wintwo","toolbar=yes,menubar=yes,location=no,status=yes,scrollbars=yes,resizable=yes,width=635,height=340,screenX=0,screenY=0,left=0,top=0"
if (win != null)
if (!win.closed);
win.focus();
}
One of my machines is giving me an error message. Is this code correct? Should there be a "!" before win.closed? Thanks for your response.
Fweb
function wintwo(url)
{
win = window.open(url,"wintwo","toolbar=yes,menubar=yes,location=no,status=yes,scrollbars=yes,resizable=yes,width=635,height=340,screenX=0,screenY=0,left=0,top=0"
if (win != null)
if (!win.closed);
win.focus();
}
One of my machines is giving me an error message. Is this code correct? Should there be a "!" before win.closed? Thanks for your response.
Fweb