1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Close the current page – how to?

Discussion in 'HTML & JavaScript' started by bizbez, Feb 13, 2012.

  1. bizbez

    bizbez Registered Member

    Joined:
    Jan 26, 2011
    Messages:
    86
    Likes Received:
    3
    Hi all,

    I have a form that redirects to a thank you page after submission. I want this thank you page to be closed after a few seconds.
    The redirection to this thank page is via php.

    The form doesn?t open via JS or popup, it?s a part of a page.

    Window.close(); doesn?t work for me here (on IE it works, but not on FF or chrome).
    Anyone knows how to close a page without user permission?
     
  2. jazzc

    jazzc Moderator Staff Member Moderator Jr. VIP

    Joined:
    Jan 27, 2009
    Messages:
    2,468
    Likes Received:
    10,143
    Why close and not just redirect somewhere?