title: Object doesn't support property or method WebBrowser Control
body: <p>I have developed a mobile app (in asp.net) and I am using a WinForms application with the WebBrowser control to demo it.</p>
  
  <p>I my main page I am using a script to hide the address bar:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      window.addEventListener("load", function () {
          // Set a timeout...
          setTimeout(function () {
              // Hide the address bar!
              window.scrollTo(0, 1);
          }, 0);
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>This has worked ok an several machines but this morning on a new machine I encountered an popup when the page loads:</p>
  
  <p><img src="https://i.stack.imgur.com/p3pHO.png" alt="enter image description here"></p>
  
  <p>The machine in question has IE9 installed and I have the <code>Disable Script Debugging</code> setting Checked.</p>
  
  <p>What is the best way to tackle this issue. Can I add some condition in the JS to not execute when running in IE?</p>