Mozilla サポートの検索

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

詳しく学ぶ

このスレッドはアーカイブに保管されました。 必要であれば新たに質問してください。

Scripts may not close windows that were not opened by script

  • 1 件の返信
  • 29 人がこの問題に困っています
  • 2 回表示
  • 最後の返信者: cor-el

more options

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

more options

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.

See http://forums.mozillazine.org/viewforum.php?f=25