Scripts may not close windows that were not opened by script
if (browserName=="Netscape") {
function closePopup() { window.open(,'_parent',); window.close();
} when i am trying to close the window, using the above script.. window is not closing and saying the error message: Warning: Scripts may not close windows that were not opened by script.
please help how do i change my script to close the window.
Сви одговори (1)
How did you open that window?
See https://developer.mozilla.org/En/DOM/window.close
A good place to ask questions and advice about web development is at the MozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.