I'm using the javascript within my ASP page to pause for a few seconds before I call a function. When my page loads, it calls this:
function Pause(iSeconds)
{
window.setInterval("GoUrl();", iSeconds*1000);
}
I seem to be getting stuck in a loop where GoUrl can never take me off of the current page. It just keeps refreshing.
Can I use clearinterval somehow to make sure that the interval will finish?
function Pause(iSeconds)
{
window.setInterval("GoUrl();", iSeconds*1000);
}
I seem to be getting stuck in a loop where GoUrl can never take me off of the current page. It just keeps refreshing.
Can I use clearinterval somehow to make sure that the interval will finish?