iPixel Posted May 11, 2009 Share Posted May 11, 2009 So recently there's been this windows / java update and for some reason javascript:self.close() no longer works, and will now close the ie / ff window that is opened. Are there any other ways to close a window besides that js line? Reason : i have a pop up that does some SQL data insert statement then it just says ok it worked blah blah blah and closes it'self. Im closing using a meta refresh tag? could that be the reason it doesnt self close anymore ? because im 100% sure it used to work. <meta http-equiv=refresh content='5;url=javascript:self.close()'> Thanks Guys! Link to comment https://forums.phpfreaks.com/topic/157711-selfclose-no-longer-working-any-other-options/ Share on other sites More sharing options...
Ken2k7 Posted May 11, 2009 Share Posted May 11, 2009 window.close()? Link to comment https://forums.phpfreaks.com/topic/157711-selfclose-no-longer-working-any-other-options/#findComment-831747 Share on other sites More sharing options...
iPixel Posted May 11, 2009 Author Share Posted May 11, 2009 No dice! =( Link to comment https://forums.phpfreaks.com/topic/157711-selfclose-no-longer-working-any-other-options/#findComment-831749 Share on other sites More sharing options...
Ken2k7 Posted May 11, 2009 Share Posted May 11, 2009 Is there a reason you're setting the url of a META redirect to a JavaScript command? Link to comment https://forums.phpfreaks.com/topic/157711-selfclose-no-longer-working-any-other-options/#findComment-831756 Share on other sites More sharing options...
iPixel Posted May 11, 2009 Author Share Posted May 11, 2009 Yea i want to time the action, i want the user to have enought time to read the result info (5 seconds) and then poof close the window. Link to comment https://forums.phpfreaks.com/topic/157711-selfclose-no-longer-working-any-other-options/#findComment-831759 Share on other sites More sharing options...
Ken2k7 Posted May 11, 2009 Share Posted May 11, 2009 And the reason you have to do with a META is? What's wrong with JavaScript? Link to comment https://forums.phpfreaks.com/topic/157711-selfclose-no-longer-working-any-other-options/#findComment-831766 Share on other sites More sharing options...
iPixel Posted May 11, 2009 Author Share Posted May 11, 2009 i dunno how to delay with js lol Link to comment https://forums.phpfreaks.com/topic/157711-selfclose-no-longer-working-any-other-options/#findComment-831768 Share on other sites More sharing options...
Ken2k7 Posted May 11, 2009 Share Posted May 11, 2009 Google setTimeout. Link to comment https://forums.phpfreaks.com/topic/157711-selfclose-no-longer-working-any-other-options/#findComment-831782 Share on other sites More sharing options...
iPixel Posted May 11, 2009 Author Share Posted May 11, 2009 I've tried working with setTimeout b4, that thing is freakin weird and never works like i want it to. I tried using setTimeout to scroll a div layer from left to right once and it just wouldnt delay at all. Link to comment https://forums.phpfreaks.com/topic/157711-selfclose-no-longer-working-any-other-options/#findComment-831787 Share on other sites More sharing options...
Ken2k7 Posted May 11, 2009 Share Posted May 11, 2009 Then you used it wrong. Link to comment https://forums.phpfreaks.com/topic/157711-selfclose-no-longer-working-any-other-options/#findComment-831797 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.