Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

how to close a main window using javascript.

  • 2 απαντήσεις
  • 33 έχουν αυτό το πρόβλημα
  • 17 προβολές
  • Τελευταία απάντηση από cor-el

more options

Has anyone found a work around for this. I have a main window with a close button but I have tried many versions of closing with javascript and it wont let me in FF.

It says "scripts may not close windows that were not opened by script."

This works in every other browser but FF

I have tried opening this main window two ways. 1. key in url directly 2. coming from another page with a < a href link

Is there a work around?

Has anyone found a work around for this. I have a main window with a close button but I have tried many versions of closing with javascript and it wont let me in FF. It says "scripts may not close windows that were not opened by script." This works in every other browser but FF I have tried opening this main window two ways. 1. key in url directly 2. coming from another page with a < a href link Is there a work around?

Τροποποιήθηκε στις από το χρήστη the-edmeister

Όλες οι απαντήσεις (2)

more options

If that page didn't open a new window with a script, Firefox isn't going to allow a script on that page to close that window.

Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox.
http://forums.mozillazine.org/viewforum.php?f=25
You'll need to register and login to be able to post in that forum.

more options