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/ Quote Link to comment 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> Quote Link to comment 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? 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.