javascript and page arguments

admin

Administrator
Staff member
ok, let's say i want to pass some arguments along with an HTML page like this:

form_example1.html?fName=value1&lName=value2

ok, using Javascript, is it possible to retrieve value1 and value2 from the arguments and put their values into Javascript variables? i want to do this so that i may display the output as this:

Your name is value1 value2

get it? so, if the url were this: form_example1.html?fName=Xavior&lName=Gates, it would display the page like this:

Your name is Xavior Gates

is this possible in Javascript?
 
Back
Top