-
Need Help! Closing the parent window when redirecting
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!
-
-
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/s...ead.php?t=7839
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks