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! Link to comment https://forums.phpfreaks.com/topic/72303-solved-close-pop-up-window/ 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>"); Link to comment https://forums.phpfreaks.com/topic/72303-solved-close-pop-up-window/#findComment-364967 Share on other sites More sharing options...
harristweed Posted October 9, 2007 Author Share Posted October 9, 2007 Works like a charm. Many thanks. Link to comment https://forums.phpfreaks.com/topic/72303-solved-close-pop-up-window/#findComment-365192 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.