title: Opening IE in HTA VBScript - doesn't support "navigate"
body: <p>For specific reasons, I'm trying to open an Internet Explorer window from within an HTA and navigate to a specific URL.</p>
  
  <p>After some searching, I came across the solution below. I successfully opens an Internet Explorer, but I get told that the IE object doesn't support Navigate?</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;title&gt;Test&lt;/title&gt;
  
      &lt;hta:application
          id="oHTA"
          applicationname="Test"
          application="yes"
          icon=""
      &gt;
      &lt;/hta:application&gt;
  
      &lt;script language="VBScript"&gt;
          Sub Sleep(seconds)
              CreateObject("WScript.Shell").Run "%COMSPEC% /c ping 127.0.0.1 -n " &amp; seconds+1, 0, True
          End Sub
  
          Function openGoogle()
  
              Set webBrowser = CreateObject("InternetExplorer.Application")
              webBrowser.Visible = True
              webBrowser.Navigate = "https://google.co.uk/"
  
              Do While webBrowser.ReadyState &lt;&gt; 4 Or webBrowser.Busy
                  Sleep 5
              Loop
  
          End Function
  
          openGoogle()
  
      &lt;/script&gt;
  
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;h1&gt;Test&lt;/h1&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>