Results 1 to 2 of 2

Thread: Need Help! Closing the parent window when redirecting

  1. #1
    Join Date
    Feb 2006
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

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

  2. #2
    Join Date
    Jan 2006
    Location
    Ft. Smith, AR
    Posts
    795
    Thanks
    57
    Thanked 129 Times in 116 Posts

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •