PDA

View Full Version : Need to close window automatically



Bundy
Mar 30th, 2003, 02:55 PM
I created a page that opens a new pop up window. That pop up window then refreshes to another page. The problem is that the original window stays open. I want to add a script that will close that original window. You can see this in action right now at http:www.beachridr.com

Thank you!

chrismiceli
Mar 30th, 2003, 05:47 PM
put this in the popup code
parent.close();

cheesebagpipe
Mar 31st, 2003, 12:02 AM
http://www.codingforums.com/showthread.php?threadid=16606&highlight=popup+close

1) parent refers to frames
2) Doing this is extremely irritating, and will lose you visitors
3) Site search! (read sticky at the top of this board)