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!
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!