Search code examples
javascriptinternet-explorer

I am getting error as "operation aborted, Internet explorer can't open the page"


I have created a shopping cart site, and i have got two complains for the same issue, but i am not able to track the main problem... They say they get the message "operation aborted, Internet explorer can't open the page" whenever they navigate to any page, and clicking "OK" displays "page cannot be displayed".

Could someone help me out? what could be the reason behind this..

Getting this problem in IE-6,7.

EDIT

I was never reported by this error before. but now I am getting this error very frequently, My site is live and happening, Its an osCommerce Site and i dont know where to make workaround changes in the site?


Solution

  • I've encounted this problem before. It's caused by javascript. Your writing something into the DOM before the DOM has finished loading.

    For example you might have something like:

    <script>document.write('hello world');</script>
    

    When it should be like

    <script>
    window.onload = function() {
      document.getElementById('test').innerHTML = 'hello world'; 
    }  
    </script>