Results 1 to 2 of 2

Thread: Question about IE&Firefox

  1. #1
    Join Date
    Nov 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Question about IE&Firefox

    Hi,I'm a new guy in learning JS.I have a question about the IE and FF:
    ----------------------------------------------------
    <html>
    <head>
    <title></title>
    <script language="JavaScript">
    function onSysLogout()
    {
    top.close();
    }
    </script>
    </head>
    <body >
    <table>
    <form name="form_logout" method="get">
    <TR>
    <TD>
    <A id=title style="text-decoration:underline; cursorointer" onClick="onSysLogout()">Exit</A>
    </TD>
    </TR>
    </form>
    </table>
    </body>
    ---------------------------------------------
    I want to close the window through clicking the "Exit" on my page.In IE7 it works,but not in firefox.I really appreciate any answering.
    Last edited by satterman; 11-08-2007 at 03:27 AM. Reason: sytax error

  2. #2
    Join Date
    Nov 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I try to use "about:config" in firefox ,and set the "dom.allow_scripts_to_close_windows" to be TRUE.
    Firefox will not close the window which is not openned by itself,is that right?
    Thanks!

Bookmarks

Posting Permissions

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