How to close main window using Firefox

Discussion in 'JavaScript' started by jtaylor, Feb 11, 2011.

  1. #1
    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."

    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?
     
    jtaylor, Feb 11, 2011 IP
  2. srisen2

    srisen2 Peon

    Messages:
    359
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    srisen2, Feb 14, 2011 IP