title: Accessing window object in remote nodejs app
body: <p>Hi I want to access client side JS code within my nodejs app which is included remotely. A lot like Google analytics does.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      var someID = 123456;
      (function() {
        var zx = document.createElement('script'); zx.type = 'text/javascript'; zx.async = true;
        zx.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'example.com/';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(zx, s);
      })();
  &lt;/script&gt;
  </code></pre>
  
  <p>In the above scenario the included script is nodejs and I want to get someID.</p>
  
  <p>If I point it not at my node app but a static JS file it's fine, but I want to consume it and other variables direct into nodejs.</p>
  
  <p>Thanks</p>