November 5th, 2012, 11:00 PM
Hi. I'm curious and I'm not sure but I wonder if you can pass data as query string when you define the src on the script tag?
Something like this?
If it's possible do you know how the code will look like?
November 6th, 2012, 02:27 PM
Yes, you can do this... you would do something like this:
Add this above all of your script tags; so it will be the first script tag, that appears in your document.
var myString = document.getElementsByTagName("script").src.split("id=");