PDA

View Full Version : How to stop a script repeating



guppy
12-04-2010, 08:48 PM
Hi,

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


<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

guppy
12-04-2010, 09:00 PM
Hang on,

should be setTimeout not setInterval