Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page stuck in loop 1

Status
Not open for further replies.

mbcmike

Programmer
Sep 9, 2005
34
0
0
US
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?
 
> window.setInterval("GoUrl();", iSeconds*1000);
[tt] window.set[red]Timeout[/red]("GoUrl();", iSeconds*1000);[/tt]
 
Thank you for the response...
Are you saying I should timeout instead of interval, or simply after it?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top