title: Send Javascript code to browser
body: <p>Is there a way to send javascript commands to an open web running in a browser from the shell?</p>
  
  <p>Let's say I have stackoverflow.com open with Chrome. Well, I'd like to send something like </p>
  
  <pre><code>alert('hi!');
  </code></pre>
  
  <p>from the shell, with something similar to the following: </p>
  
  <pre><code>$ send -t Chrome -w "stackoverflow.com" -c "alert('hi!')"
  </code></pre>
  
  <p>I was wondering this, because if I can write alert('hi!') on the javascript console of Chrome, I should be able to do the same with a call somewhere, right?</p>
  
  <p>I've seen node.js but I think is not possible with that, please, let me know if I'm wrong.</p>
  
  <p>I know the question could seem weird but I'm curious, thanks in advance :)</p>