harristweed Posted October 8, 2007 Share Posted October 8, 2007 I have a form in a pop up window. When the form is submitted a database is updated (via php). I then want the widow to close, I have this in the php script: exit("<a href=\"javascript:window.close();\">Close Window</a>"); Is it possible to get the window to close without the need to click on the link? You can see from the above that I am a total idiot where Javascript is concerned! Quote Link to comment Share on other sites More sharing options...
emehrkay Posted October 8, 2007 Share Posted October 8, 2007 exit("<script type=\"text/javascript/">window.close();</script>"); Quote Link to comment Share on other sites More sharing options...
harristweed Posted October 9, 2007 Author Share Posted October 9, 2007 Works like a charm. Many 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.