Reputation: 1
Using Javascript and HTML Form
Page 1: Simple Link passing two variables (page1var1=xxxx and page1var=yyyy) separated by an "&" symbol
Page 2: Use Javascript to "split" the two variables either side of the "&" into page2var1 and page2var2
So now page2var1=xxxx
and page2var2=yyyy
(successfully done already)
How do I use these variables in page 2 to:
Upvotes: 0
Views: 4525
Reputation: 30882
Something like this:
document.GetElementById(Page2var1).checked = true;
document.GetElementById(page2var2).value = 'whatever text'
Nothing google wouldn't help you with.
Upvotes: 1