title: How to modify C# 4.5 WPF webbrowser element before start rendering
body: <p>I want to inject Javascript code just below the head element.
  For example below code:</p>
  
  <pre><code>&lt;script src="C:\jquery-1.9.1.min.js" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
  
      $(document).ready(function () {           
          alert('all successfull');
      });
  
  &lt;/script&gt;
  </code></pre>
  
  <p>It has to be done before webbrowser object start rendering page. Otherwise script would not be loaded.</p>
  
  <p>Now I have come so far like below but can not find a way to inject this below script. Help is appreciated.</p>
  
  <pre><code>    private void Button_Click(object sender, RoutedEventArgs e)
      {
          wbScreen1.LoadCompleted += wbScreen1_LoadCompleted;
          wbScreen1.Navigate("http://www.monstermmorpg.com");
      }
  
      void wbScreen1_LoadCompleted(object sender, NavigationEventArgs e)
      {
  
      }
  </code></pre>
  
  <p>C# 5 , WPF application</p>