doug007 Posted August 26, 2009 Share Posted August 26, 2009 Hi Guys, I'm trying to close a window without getting the prompt. i am using this code: function NoConfirm(){ window.opener = top; window.close (); } window.onLoad = NoConfirm; </script> </head> <body onLoad="popup(); NoConfirm(); window.close();"> [/code/ Link to comment https://forums.phpfreaks.com/topic/171978-windowclose/ Share on other sites More sharing options...
student101 Posted August 26, 2009 Share Posted August 26, 2009 function CloseWindow(){ //trick IE6,7 window.open('','_self',''); window.close(); } <a href="" onclick="CloseWindow();">Close Window</a> Link to comment https://forums.phpfreaks.com/topic/171978-windowclose/#findComment-906960 Share on other sites More sharing options...
doug007 Posted August 27, 2009 Author Share Posted August 27, 2009 great this actually works. but its taking a little to close, can this be improved? Link to comment https://forums.phpfreaks.com/topic/171978-windowclose/#findComment-907397 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.