How to get value of the get or post variable on page load using JavaScript?
You can only get the URI arguments with JavaScript.
// get query arguments var $_GET = {}, args = location.search.substr(1).split(/&/); for (var i=0; i