faqts : Computers : Programming : Languages : JavaScript : Event handling

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

13 of 14 people (93%) answered Yes
Recently 9 of 10 people (90%) answered Yes

Entry

Is a func "myTime=setTimeout" autocleared by page unload. Or is "clearTimeout(mytime)" necessary?

Jan 18th, 2002 07:05
Juergen Thelen, Staffan Gustavsson,


Functions, global variables, timers and stuff usually exists as long, 
as their declaring page is still alive. They will be automatically 
garbaged on close/unload of the declaring page, so no explicit 
clearTimeout() is necessary in your case... :o)
Hth, Juergen