title: How to change webbrowser html content without effecting page?
body: <p>I want to replace some string in html page with c# on webbrowser component. For example there is some text like "Welcome Page" which is loading that page by ajax.</p>
  
  <p>I Want to vanish that and reload, I tried to;</p>
  
  <blockquote>
    <p>webbrowser1.document.body.innerhtml = webbrowser1.document.body.innerhtml.replace("Welcome Page","");</p>
  </blockquote>
  
  <p>When I look for the string, "Welcome Page", It disappeared. So it works fine. But,
  All the javascript functions stopped in the page. Page became a static page.</p>
  
  <p>So thats the problem,
  How can I change Any string in the page witout effecting any features of page?</p>
  
  <p>EDİT:
  I tried @ Mehran Hatami's solution. And it works fine. Now there is no javascript or other problems.</p>
  
  <p>I solved with</p>
  
  <pre><code>foreach (HtmlElement link in webBrowser1.Document.GetElementsByTagName("span"))
  {
      if (link.GetAttribute("id").ToString() == "messegetext")
      {
        MessageBox.Show(link.InnerHtml);
       if (link.InnerHtml.IndexOf("this is message which posted by ajax") &gt; -1)
          {
              link.InnerHtml = "any new text to replaced I want :)";
          }
      }
  }
  </code></pre>