title: where is IHTMLScriptElement?
body: <p>I just started using Visual Studio 2010 C# IDE today.</p>
  
  <p>I'm trying to inject javascript to WebBrowser component and followed the answer from stackoverflow:</p>
  
  <p><a href="https://stackoverflow.com/questions/153748/how-to-inject-javascript-in-webbrowser-control/154496#154496">How to inject Javascript in WebBrowser control?</a></p>
  
  <pre><code>HtmlElement txtBox = webBrowser1.Document.GetElementById("UserEmailShortcut");
  //js
  HtmlElement scriptOne = webBrowser1.Document.CreateElement("script");
  IHTMLScriptElement element = (IHTMLScriptElement)scriptOne.DomElement;
  element.text = "function sayHello() { alert('hello') }";
  txtBox.AppendChild(scriptOne);
  webBrowser1.Document.InvokeScript("sayHello");
  </code></pre>
  
  <p>Now there is red wavy line under <strong>IHTMLScriptElement</strong> saying:</p>
  
  <pre><code> Error  1   The type or namespace name 'IHTMLScriptElement' 
  could not be found (are you missing a using directive or an assembly reference?)
      C:\Users\m-tak\documents\visual studio
   2010\Projects\winformWithWebBrowserTest\winformWithWebBrowserTest\Form1.cs
      25  13  winformWithWebBrowserTest
  </code></pre>
  
  <p>I've looked documentation 
  <a href="http://msdn.microsoft.com/en-us/library/aa768904(v=VS.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/aa768904(v=VS.85).aspx</a></p>
  
  <p>but I can't figure why. Isn't this already included and just need to include like "<code>using IHTMLScriptElement</code>" (which didn't work..)</p>