Suppose I have the following url. With the help of getUrlVars below, we retrieve the id parameters.
http://somesite.com/index.php?id=123
var id = getUrlVars()["id"]; How to insert the value 123 into another variable of the JS file, for example like this:
var preLandUrl = "http://somesite.com/fit2/?ref=12&s= there should be 123 "