לאתר זה תהיה פונקציונליות מוגבלת בזמן שאנו מתחזקים אותו לשיפור החוויה שלך. אם מאמר מסויים לא פותר את הבעיה שלך וברצונך לשאול שאלה, קהילת התמיכה שלנו מחכה לעזור לך ב־Twitter תחת ‎@FirefoxSupport וב־Reddit תחת ‎/r/firefox.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

Scripts may not close windows that were not opened by script

  • 1 תגובה
  • 29 have this problem
  • 2 views
  • תגובה אחרונה מאת 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