How to Fix "Internet Explorer Cannot Open the Internet Site- Operation Aborted" Error

This error shows up when the page loads (or tries to load). There are many scenarios that can cause this error which occurs in IE. Microsoft has even issued a patch for solving it.

This error is being caused by calling a piece of Javascript within a page (after the tag). Adding the defer="defer" tag to the script quickly resolves the issue.

<script defer="defer" type="text/javascript" src="src goes here">/*code goes here*/</script>

Hope this helps someone! Smile

79 comments for How to Fix "Internet Explorer Cannot Open the Internet Site- Operation Aborted" Error

Nichol's picture

I'm seeing this fix...

I'm seeing this fix everywhere. Where do I add this to? This error is frustrating me!

Richard's picture

Hello Nichol, You can easily...

Hello Nichol,

You can easily resolve this issue by adding defer="defer" to your script tags.

sabuj's picture

hi how can i add 'defer'...

hi
how can i add 'defer' please tell me.i dont have any idea about how to add defer &javascript.

Anonymous's picture

Hi can you tell me step by...

Hi can you tell me step by step how to add defer to my script tags.
cheers.

Anonymous's picture

Please provide steps to help...

Please provide steps to help me resolve "IE cannot open the internet site operation aborted"

Tom Nygaard's picture

That's fine but how exactly...

That's fine but how exactly step by step do you add "defer" starting from "Start"?

Anonymous's picture

Hey Richard should let you...

Hey Richard should let you know that his fix is for the server hosting the website.

Eric's picture

Wow! Thanks for this. Solved...

Wow! Thanks for this. Solved my problem instantly! Incidentally, it was an issue with calling a custom messaging plugin I wrote for jQuery, which uses the append method to attach a message container to the document.

Calvin's picture

Sorry, I really have no idea...

Sorry, I really have no idea what to do. I don't even understand what "adding defer="defer" to your script tags" even really mean.

Do I copy and paste "defer="defer"" into the HTML, is that it?

Sorry, as you can see I'm not good in any of this!

Thanks!

Richard's picture

Hey Calvin, All you need to...

Hey Calvin, All you need to do is add

defer="defer"

to all of your Javascript declarations like this:
<script defer="defer" type="text/javascript" src="jquery.js"></script>

Tom Nygaard's picture

Right now I see...

Right now I see http://www.richardcastera.com/comment/reply/40/59 in the search box or whatever that box is for adding web sites.

So how do I get into all javascript or the HTML code section to add what you are telling us?

asif khan's picture

dear Richard, I would like to...

dear Richard,
I would like to thank you that you unintentionally solved my problems as I was in it for a long time.

Anonymous's picture

i really don't get what your...

i really don't get what your talking about im trying to get on button beats and it wont let me.

Anonymous's picture

When I go to my facebook page...

When I go to my facebook page I keep getting an error message saying that internet explorer can't open web page, operation aborted. How do I solve this problem that is really getting frustrating.... I can't even log into my facebook page without this happening. and I don't understand this IE or java script or anything like that. I don't even know where to find it.

ZeeBigTourist's picture

I've had this error message...

I've had this error message (and went nuts), but I cracked (not my head) the code, just in time.

This is what I did, http://zeebigtourist.blogspot.com/2009/06/internet-explorer-cannot-open-...

Thanks for all the helpful info.

ZeeBigTourist

simon's picture

this is a great fix. i...

this is a great fix. i banged my head on this problem for a day before finding it. THANK YOU!

Pro-Vamsi's picture

This one did not work for me....

This one did not work for me. I don't have any reasons why this did not work only for me.

ali's picture

Hey this piece of code did...

Hey this piece of code did save me...I was banging my head for this from past 2 hours and i didn't get a proper and easy solution...

Charlie's picture

How about when you're looking...

How about when you're looking at someone elses webpage and you get that error?

Richard's picture

I guess it would be nice if...

I guess it would be nice if you mentioned this post to them Smile

maria's picture

I think I also have this...

I think I also have this problem, but I really don't understand anything of scripts and... stuff..
Sad

Hey Calvin, All you need to do is add

defer="defer"

to all of your Javascript declarations:

Where should I write this? Where are those Javascript declarations Sad

Sorry for being so incompetent and thanks!

Richard's picture

Maria, you add defer="defer"...

Maria, you add defer="defer" to the script tag.

Music's picture

It's not working. I know this...

It's not working. I know this usually does the trick, but what you do when you try to embed a flash file into a web page?

You see, I have this problem, when I embed a flash file into an article (in Joomla!) - suddenly the page doesn't load in IE 7. In IE 6 things aren't working great, but still working. So... I tried most of the solutions google offered from your posts, and still didn't solve my problem.

And I know it's that flash file problem, because when I unpublish that article - things work smoothly.

Help, please!

Richard's picture

Music, are you sure that...

Music, are you sure that you've added it to all of the Javascript declarations?

Raul's picture

Greaters solution ever thankz...

Greaters solution ever thankz Bro...

Richard's picture

No problem!...

No problem!

Stephanie's picture

Hi, please help! I've added...

Hi, please help! I've added deter to all the script tags in my code, and now the page just goes blank. What should I do? This is in IE of course.

Stephanie's picture

I mean defer!...

I mean defer!

Richard's picture

Stephanie, Then you may have...

Stephanie, Then you may have a bug in your Javascript code. Try downloading the Microsoft Javascript Debugger (http://www.microsoft.com/downloads/details.aspx?familyid=2F465BE0-94FD-4...). This can help you in debugging javascript in Internet Explorer. To enable debugging, follow this tutorial, (http://www.jonathanboutelle.com/mt/archives/2006/01/howto_debug_jav.html)

Phil's picture

Hi, Great article, saved me a...

Hi,

Great article, saved me a few hours work around! Without IE bashing too much, it just goes to show that as a web designer, it's these niggly and inexplicable things that really eat in to our time!

I also found this microsoft page/confession(!) with regard to the same problem...

http://support.microsoft.com/kb/927917

This might help some of the people that the defer="defer" does not immediately work for.
Interestingly, my script was also placed outside of any elements and was within just the tag as they seem to think solves the problem.

Maybe try both in unison.

Richard's picture

Thanks for tip Phil!...

Thanks for tip Phil!

Canvas Prints's picture

Yeh this seems to have worked...

Yeh this seems to have worked Cheers !

Richard's picture

Great!...

Great!

Ivan's picture

Found the fix it appears most...

Found the fix it appears most people are looking for. It's caused by a conflict with IE7 and the flash embed code used by YouTube and other video sites. Obviously, this fix will only work if you are the site developer.

Here is an example of the classic video embed code:

Simply remove the Object code so the result is:

This all you need to do.

If you want to test this solution, simply go to my website http://www.timeline2012.net/ which has 5 embeds on the home page.

Ivan's picture

Found the fix it appears most...

Found the fix it appears most people are looking for. It's caused by a conflict with IE7 and the flash embed code used by YouTube and other video sites. Obviously, this fix will only work if you are the site developer.

Here is an example of the classic video embed code:

.....object width="445" height="364"..................>...../embed>

Simply remove the Object code so the result is:

.....embed src="http://...........&hl=en&fs=1&border=1" type="application/x-shockwave-flash" wmode="transparent" allowscriptaccess="always" allowfullscreen="true" width="445" height="364">

This all you need to do.

If you want to test this solution, simply go to my website http://www.timeline2012.net/ which has 5 embeds on the home page.

Richard's picture

Thanks!...

Thanks!

Steven Leslie's picture

Internet Explorer 7, HTTP,...

Internet Explorer 7, HTTP, HTTPS, port 80 ... I have three profiles running on windows XP (one computer), one of the users Explorer can not connect to the internet, so it must be that users profile,, I have reset Explorer taken off all firewalls and it still will not connect,, outlook is working and I can check mail. Do you know what setting could be making the problem? Also if I use Netscape I can get to the internet.

Richard's picture

Steven, You might wanna try...

Steven, You might wanna try modifying all setting for IE to default or even better yet, do yourself a favor and switch to a better browser like Firefox or Chrome Smile

Sachin Kalra's picture

Thanks, really helpful...

Thanks, really helpful

Richard's picture

Thanks!...

Thanks!

Shorty's picture

okay i finally figured out...

okay i finally figured out where to put it, the code, but it wont stay on there. it of course is not my own web site, another web site. its making me mad because it happens everyday, every time i try to get on there and has been for the last two weeks. i unfortunately have let someone else use my computer and it didn't happen until they got on here and were going to chat sites and everything else and have no clue if they do anything or not (they say no but anyone can say no). as of now no one but me is on my computer. need help. tried everything i can think of and have run out of options. so if you could help id appreciate it very much. oh and it only happens on the one web site and no others.

Richard's picture

Shorty, unfortunately it’s...

Shorty, unfortunately it’s not anything with your computer settings but rather with the programming of the website.

vidhya's picture

thanks a lot i was breaking...

thanks a lot i was breaking my mind for more than 4 hours for this bug,thank u.

Richard's picture

Vidhya, No worries Thanks...

Vidhya, No worries Smile Thanks for reading!

V Solomon's picture

Simply download Mozilla's...

Simply download Mozilla's Firefox and use that for your Web Browser.

Richard's picture

V, lol I agree with you! But...

V, lol I agree with you! But as developers, we still need to debug websites for the curse of the web (IE).

Saurabh Shrivastava's picture

This really works and very...

This really works and very good solution. Thanks dude!!!!!

Richard's picture

Saurabh, Awesome! Your...

Saurabh, Awesome! Your welcome!

avd's picture

What caused the error for me...

What caused the error for me was a Google adsense script placed before a script that appended the adsense to another div. Putting the adsense code in a new div and closing it before the append code did the trick. Didn't try the "defer" solution-it might be a violation of adsense tos-not sure.

S.Z's picture

I fixed this problem simply...

I fixed this problem simply by disable one IE Add-on, by:

IE->Tools->Manage Add-on->Publisher is ShenZhen QVOD Technology Co.,Ltd

Name {53AC8551-0DE0-4606-8A1E-A51AF20ADD60}
Publisher (Not verified) Shenzhen QVOD Technology Co.,Ltd
Status Disabled
File date Monday, March 01, 2010, 4:57 PM
Version 3.0.0.0
Load time (0.00 Drunk

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.