ToddAtWSU Posted August 28, 2007 Share Posted August 28, 2007 After hitting a submit button I am loading a new page that says submission was completed and after a few seconds redirects the user to the homepage. The way the main web-designer set the page is he has my page open in a new window so returning it to the homepage is useless. How do I just close my browser window after displaying the success page for 5-10 seconds? Thanks! Quote Link to comment Share on other sites More sharing options...
GingerRobot Posted August 28, 2007 Share Posted August 28, 2007 Well, if the window was opened with javascript, you can close that window with javascript. http://www.google.co.uk/search?hl=en&q=javascript+close+window+delay&meta= Quote Link to comment Share on other sites More sharing options...
ToddAtWSU Posted August 29, 2007 Author Share Posted August 29, 2007 Why was my message moved. The window was made in HTML and PHP and I used the meta tag to refresh to the homepage. <meta http-equiv="refresh" content="5;url=.."> Any other ideas? Thanks! Quote Link to comment Share on other sites More sharing options...
ToddAtWSU Posted August 29, 2007 Author Share Posted August 29, 2007 The javascript method worked by doing: self.opener = top; setTimeout( "self.close( )", 5000 ); Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.