Javascript Get Values

<script type="text/javascript">

alert(function jsGet('get-variable-name));

function jsGet(variable) {
var queryString = window.location.search.substring(1);
var vars = queryString.split("&");
for(var i=0; i<vars.length; i++){
var getValue = vars[i].split("=");
if(getValue[0] == variable) return getValue[1];
}
}

</script>

0 Comments

You must be logged in to post a comment.