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
    Registered User
    Join Date
    Dec 2004
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Script to close pages automatically

    Hello everyone,

    I'm wodering if any of you have a code I'm looking for or where I can get it. I need a script that closes links that exit from my website after a certain time. For example if you clicked on a text ad on my website and it opens in a new window, I want to make it close by itself after a few minutes. How can I do this?

    Any input would be appreciated.
    Last edited by ebay258; 05-20-2005 at 09:46 PM.

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    In the popup

    PHP Code:
    <script type="text/javascript" >
    <!--
    window.setTimeout("window.close()",5000)
    //-->
    </script> 
    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.


  •  

    Posting Permissions

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