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!

Is it possible to stop running script using onunload?

Status
Not open for further replies.

Isadore

Technical User
Feb 3, 2002
2,167
0
0
US
I am working with Yahoo maps having several hundred point objects - the maps work fine for as long as the user is there; however, when the user redirects to another page using the browser back button, or a URL link, IE pops up the following message:

Stop running this script?

A script on this page is causing Internet Explorer to run slowly.
If it continues to run, your computer may become
unresponsive.

[Yes] [No]

The onunload function is activated prior to the IE message (alert messg test).

Perhaps the javascript itself is the problem and runs continously when it should not (code for the page is visible in the source of the demo below). I have submitted this problem to Yahoo Maps but thought it might be more generally related to javascript and IE compatibility - e.g., perhaps the javascript is ok but has only exceeded IE's upper limit, etc.

Any suggestions would be appreciated and thanks in advance for your time.

Demo of page generating IE message
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top