Safari (Mac) close()

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Marcia Gulesian

    #1

    Safari (Mac) close()



    The following code works in I.E. (PC) but not Safari (Mac)

    window.opener=s elf;
    window.close();

    What code will close the page when it runs in Safari?

  • Thomas 'PointedEars' Lahn

    #2
    Re: Safari (Mac) close()

    Marcia Gulesian wrote:
    [color=blue]
    > The following code works in I.E. (PC) but not Safari (Mac)
    >
    > window.opener=s elf;
    > window.close();
    >
    > What code will close the page when it runs in Safari?[/color]

    Hopefully none. What you have used looks like an attempt
    to use a security bug in some browsers that allows to close
    the current window even if not openened with client-side
    scripting.


    PointedEars
    --
    "The Ten Commandments contain 297 words. The Bill of Rights is stated
    in 463 words. Lincoln's Gettysburg Address contains 266 words.
    A recent federal directive to regulate the price of cabbage contains
    26,911 words." -- Atlanta Journal

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: Safari (Mac) close()

      Marcia Gulesian wrote:
      [color=blue]
      > The following code works in I.E. (PC) but not Safari (Mac)
      >
      > window.opener=s elf;
      > window.close();
      >
      > What code will close the page when it runs in Safari?[/color]

      Hopefully none. What you have used looks like an attempt to exploit a
      security bug in some browsers that allows to close the current window
      even if not opened with client-side scripting.


      PointedEars
      --
      "The Ten Commandments contain 297 words. The Bill of Rights is stated
      in 463 words. Lincoln's Gettysburg Address contains 266 words.
      A recent federal directive to regulate the price of cabbage contains
      26,911 words." -- Atlanta Journal

      Comment

      • Mick White

        #4
        Re: Safari (Mac) close()

        Marcia Gulesian wrote:
        [color=blue]
        >
        > The following code works in I.E. (PC) but not Safari (Mac)
        >
        > window.opener=s elf;
        > window.close();
        >
        > What code will close the page when it runs in Safari?
        >[/color]
        "Command + Q" works quite well....
        Mick

        Comment

        Working...