Jump to content

[SOLVED] close pop up window


harristweed

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.