148
rated 0 times
[
150]
[
2]
/ answers: 1 / hits: 16957
/ 15 Years ago, fri, june 19, 2009, 12:00:00
In my HTML file I have linked to the JS with:
src=myscript.js?config=true
Can my JS directly read the value of this var like this?
alert (config);
This does not work, and the FireFox Error Console says config is not defined. How do I read the vars passed via the src attribute in the JS file? Is it this simple?
More From » html