Hi I want to access client side JS code within my nodejs app which is included remotely. A lot like Google analytics does.
<script type="text/javascript">
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);
})();
</script>
In the above scenario the included script is nodejs and I want to get someID.
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.
Thanks