Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2002
    Location
    UK
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question timed redirecting for closure of window.. can anyone help?

    yea i want to know if there is a code an if so what it is.. for a timed redirect link thing that instead of takes you to a new page it closes the window (for use in a custom sized pop up window)

    thnx

    Matt
    .wishes.

  • #2
    Senior Coder Nightfire's Avatar
    Join Date
    Jun 2002
    Posts
    4,265
    Thanks
    6
    Thanked 48 Times in 48 Posts
    I think I understand you

    <script>
    function closeWindow(){
    window.close();
    }
    setTimeout("closeWindow()",4000)
    </script>


    That'll close the window in 4 seconds, change the numbers in red to change the time you want to close the window


  •  

    Posting Permissions

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