View Full Version : How To Abort Loading If It Takes Too Long Or Fail?

08-18-2005, 12:47 AM
When I load anything like either html file or image in javascript using element.src = "mypage.html", sometimes either the server is too busy or the page is not available due to maintainance. And the browser will just keep saying "Transferring the data from ..." forever on that one file. Then for a while, the browser will just freeze.

How can I use javascript to tell browser to stop the attempt to transfer the data if it seems that the file is not available?

Many thanks.

08-19-2005, 01:14 AM
any idea?