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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Halt code execution

Status
Not open for further replies.

pkailas

Programmer
Jun 10, 2002
555
US
In VB you can put "stop" in place to halt code. Is there a way to do this with Javascript?

_______
I love small animals, especially with a good brown gravy....
 
No, there is not.

Your best bet is to roll your own using a timer (setTimeout / setInterval).

Avoid using tight loops without a timer, as it will lead to browsers locking up.

Hope this helps,
Dan



Coedit Limited - Delivering standards compliant, accessible web solutions

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top