dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Closing a window in Firefox

  1. #1
    Join Date
    Jun 2010
    Posts
    4

    Closing a window in Firefox

    I'm putting together a popup flash player that can be launched from a url posted on a board. The link goes to a landing page which executes an onLoad script that opens the popup, then closes itself, leaving the popup over the board. Works fine in IE, but in FF the landing page remains open behind the popup and over the board. It will not self.close, and can't be closed from the popup (close.opener). Leading theory is that a FF window cannot be closed with script if it was not opened with script, and I've somewhat confirmed this, but seems a simple thing and should be doable.

    Any ideas?

    Thx.

  2. #2
    Join Date
    Jan 2009
    Posts
    3,346
    Javascript is unable to close a window that it didn't previously open in FF.

  3. #3
    Join Date
    Jun 2010
    Posts
    4
    <sigh> That was my conclusion as well.

    Don't suppose there's any other way to do it?

  4. #4
    Join Date
    Jan 2009
    Posts
    3,346
    Load the popup window directly instead of the intermediate page or use an in-page container (like a styled div) instead of a new window at all.

  5. #5
    Join Date
    Jun 2010
    Posts
    4
    It's got to launch directly from a url so it can be posted in forums and included in emails. I have a workaround that's a bit tacky, but it's useable.

    Firefox is a regular nightmare to work in.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles