Thursday, May 07, 2009

How can we resolve javascript Error "Operation Aborted"?

This Error will come only if you are using IE 7 or less version. If you are using DOM object inside your page, sometimes it's trying to access the particular "div" tag before it's loading. At that particular time it will through the error. Once you refreshed the page it will work.

Here is the simple solution for this problem. When you include the script in your page, add "defer='defer'" inside the script tag. So your script will look like the following..

script language='javascript' defer='defer' type='text/javascript' src='test.js'

No comments:

Post a Comment