Closing Window in Safari

  • Started
  • Last post
  • 1 Response
  • jmteow

    I'm trying to use a variety of javascript close window methods in Safari for buttons, but none seem to be working, including:

    self.close()
    window.close()

    They seem to work in Opera, IE, FireFox(with a bit of a workaround), but never in Safari.

    Any idea for a workaround? Google search has found a couple suggestions, but none have really panned out.

  • jmteow0

    Er scratch this problem.

    self.close(); works if a new window is open (instead of having the address entered by the user).

    Probably should've tested it locally first before spending the last two hours looking for a workaround.