This question already has an answer here:
- How can I get query string values in JavaScript? 73 answers
- How to get the value from the GET parameters? 56 answers
I know if I have a php page, I can pass variables to the next page through the url with $_GET. Such as:
http://www.w3schools.com/welcome.php?fname=Peter&age=37
yields:
$currentName = $_GET["fname"]
$currentAge = $_GET["age"]
Is there an equally easy way to do this in pure HTML (or javascript)?