title: Access GET directly from JavaScript?
body: <p>I suppose I could use PHP to access <code>$_GET</code> variables from JavaScript:</p>
  
  <pre><code>&lt;script&gt;
  var to = $_GET['to'];
  var from = $_GET['from'];
  &lt;/script&gt;
  &lt;script src="realScript" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>But perhaps it's even simpler. Is there a way to do it directly from JS?</p>