Register now and start sharing your code snippets.
-->

Solving "Internet Explorer cannot open the Internet site http://xyz.com. Operation aborted."

JavaScript posted about 1 year ago by christian

This bug exists in IE6 and IE7 and is caused by a JavaScript that tries to modify a tag that hasn’t been closed (yet).

For example this one:

   1  <div id="x">
   2    <script type="text/javascript">
   3    $('x').replace("wrong");
   4    </script>
   5  </div>

This example fixes the problem, because the script is defined after the tag that it tries to modify:

   1  <div id="x">
   2  </div>
   3  <script type="text/javascript">
   4    $('x').replace("correct");
   5  </script>

See BUG : Error message when you visit a Web page or interact with a Web application in Internet Explorer: ‘Operation aborted’ for a detailed explanation of the problem.

Tagged ie6, ie7, bug, ajax, prototype, scriptaculous