So, Internet Explorer 6 has just claimed another hour and a half of my life by refusing to act like a decent browser and demanding its own specific hack.
The problem in question has been well-documented but most of the references I found to the solution linked to a website that is now defunct, so I thought I’d include my own solution below in case it’s of any use.
I’m running a Google Map on a page. The Google Map script is referenced in my page’s <head> as is my own script which generates a map and then does things with it. Pretty standard stuff.
However, in Internet Explorer 6 when you access the page you get the following message alert,”Internet Explorer cannot open the Internet site - operation aborted” and then you see a “Page cannot be displayed” message. The reasons for this are outlined in Nirmal’s post, How to Fix “Internet Explorer Cannot Open the Internet Site- Operation Aborted” Error.
I fixed it by moving both the call to the Google Maps Javascript and my own Javascript file to the end of the page, just before the closing <body> tag. I also threw in a defer=”defer” attribute to my own script reference just for extra safety. This will prevent IE from executing the script until the page has completed loading.

![1/52: 2/2/09 [Me]](http://farm4.static.flickr.com/3106/3159713828_cde0d36cbf_s.jpg)





8 responses so far ↓
1 “Internet Explorer cannot open the Internet site” error // Aug 1, 2008 at 5:32 pm
[...] Go to the author’s original blog: “Internet Explorer cannot open the Internet site” error [...]
2 Expatguru // Aug 2, 2008 at 1:08 pm
I am now facing the same problem in my blog. I have no knowledge of javascript and am not a techie. Could you please explain to me how to locate the Google maps Javascript and my own Javascript file? Also, where should I type the defer=”defer” attribute? Thanks for your help.
3 David // Aug 2, 2008 at 2:31 pm
Hi there,
The Google Maps documentation explains this in more depth, but you reference the main Google Maps Javascript file in a script tag in your page — probably best just before the closing body tag if you’re getting the problem referred to above.
Your call to the Google Maps Javascript must naturally come before the call to your own Javascript file. You place the “defer” attribute in the script tag itself, e.g.:
<script type=”text/javascript” src=”http://maps.google.com/maps?file=api&v=2&key=abcdefg” defer=”defer”></script>
<script type=”text/javascript” src=”/path/to/javascript-file.js” defer=”defer”></script>
the “key=abcdefg” in the first statement should be replaced by your own API key.
Hope this helps,
David
4 Luboš Motl // Aug 2, 2008 at 4:11 pm
Six other fixes for the problem, both for the browser and the webmaster, see here: http://motls.blogspot.com/2008/08/fix-internet-explorer-7-with-sitemeter.html
5 jessica // Aug 13, 2008 at 11:24 pm
easiest fix i’ve found so far is to change v=2 to v=2.118 in the google maps javascript include. no need to mess around with adding defer attributes or moving your scripts.
6 David // Aug 14, 2008 at 8:19 am
Hi Jessica, thanks for the tip. I’ll check this out.
7 David // Aug 16, 2008 at 4:21 pm
@jessica - thank you. That fixed my problem immediately. Well spotted.
8 Jen // Aug 19, 2008 at 2:04 pm
Jessica - YOU ARE MY HERO!
Leave a Comment