title: How to execute javascript in C#?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/172753/embedding-javascript-engine-into-net-c">Embedding JavaScript engine into .NET (C#)</a>  </p>
  </blockquote>
  
  
  
  <p>I have a script like this:</p>
  
  <pre><code>var myObject=new Object();
  myObject="Hello";
  </code></pre>
  
  <p>If I refer the script in browser, I can make use of myObject just like below:</p>
  
  <pre><code>&lt;script src="myObject.js" type="text/javascript"&gt;
  &lt;script type="text/javascript"&gt;
      alert(myObject);
  &lt;/script&gt;
  </code></pre>
  
  <p>Can I execute the script in C# without browser? It should be like below:</p>
  
  <pre><code>//These are C# Code
  string result = ????????
  </code></pre>