Pass variables into javascript via query strings


/ Published in: JavaScript
Save to your folder(s)

Pass variables into javascript files using query strings, and return them using getJSvars()
Example

//HTML


//return the value of "foo"
getJSvars('filename.js', 'foo');

URL: http://posheika.net/?p=42

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.