PDA

View Full Version : Need Help! Closing the parent window when redirecting



aquatopia_mazza402
02-20-2006, 07:26 PM
I haven't done JavaScript in such a long time. I have a [FORM] button that when clicked on, redirects to a webpage. I need it to close the parent window after they click on the button.

When they visit my site, if they are a guest, they are greeted with a popup. If members want to log in, they click on the log in button. It redirects to the webpage great, but it leaves the original window up. What can I put in my code to get it to close that window out?

Heres the code that I have.

<form>
<input type="button" value="Log In"
onclick="window.open('http://aquatopiaforum.com/index.php?act=Login&CODE=00')">
</form>


Thanks in advance!

TheJoshMan
02-21-2006, 04:53 AM
You can check out the post I did last night... I think it is pretty relevant to what you are talking about... You should be able to modify that code to suit your needs. Here's the link...

http://www.dynamicdrive.com/forums/showthread.php?t=7839