Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Window closing problem in Netscape 7.1

2 views
Skip to first unread message

Asit

unread,
Aug 6, 2004, 7:06:49 AM8/6/04
to
I have facing the problem of window closing in Netscape 7.1

I have a window (simple window) and a button , on clicking the button
i want to close the window. I have written the closeWindow() function
on onClick event of button. Its work fine in IE.

How to solve the issue ?
Is there in any alternate way to close the window in Netscape 7.1 ?

function CloseWindow()
{
if (window.name != "")
window.name = "";
window.close();
}

Regards

Erwin Moller

unread,
Aug 6, 2004, 9:49:48 AM8/6/04
to
Asit wrote:

<input type="button" value="close this window" onClick="window.close()">

I am not sure what you are fiddling around with that name.

Beware that if you want to close a window that is not opened by javascript,
javascript cannot close it.

Regards,
Erwin Moller.

0 new messages