title: How to get a JS script console output in TWebbrowser?
body: <p>I want to run a javascript code in TWebbrowser and get the console output of it. For instance, if i run this code in the console :</p>
  
  <pre><code>var a = 2; var b = 3; var c = a +b ; console.log('The result is '+ c); 
  </code></pre>
  
  <p>I get this output on console :</p>
  
  <pre><code>The result is 5
  </code></pre>
  
  <p>The code i use to run a JS script with TWebbrowser is this :</p>
  
  <pre><code>twebbrowser1.navigate('javascript:var a = 2; var b = 3; var c = a +b ; console.log('The result is '+ c);');
  </code></pre>
  
  <p>It works, but i don't know how to get the console output. Is there a way to do it ?</p>
  
  <p>Thanks in advance !</p>