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
<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.