Results 1 to 2 of 2

Thread: How to stop a script repeating

  1. #1
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default How to stop a script repeating

    Hi,

    I'm using this script to create popups, but it repeats forever and I was wondering if there was anyway of stopping it?

    HTML Code:
    <head>
    <script language="javascript">
    function timerpopup() {
          window.open ("column1.html", "", "width=480,height=827,left=0, top=0,links=0,menubar=0");
    	 }
    	 
    	 
    </script>
    
    
    
    </head>
    <body>
    
    
    
    
    <script type="text/javascript">
        <!-- ;
    window.setInterval("timerpopup()",2000);
    
        // -->
        </script>
    </body>
    Any help would be much appreciated, thanks.

    Mike

  2. #2
    Join Date
    Aug 2010
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hang on,

    should be setTimeout not setInterval

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
  •