Ok, I have hit a stumbling block I can't seem to get around and would appreciate some help.
I am programming in javascript and html.
I pass a bunch of variables on the url:
called.html?a=1&b=2&c=3 ...etc...
when called.html gets loaded I need to take one of the variables off the url and display it in the middle of the page...
kind of like:
XXXXXXXXXXXXXXXXXx
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXX
a = <insert value here>
XXXXXXXXXXXx
XXXXXXXXXXXXXX
XXXXXXXXXXXX
So the way I get the variables off the url is by naming the html page is with the FORM tag. and then calling the page by name within the javascript.
but I can't figure out as the page is loading how to call the javascript to grab that variable from the url and then display it where I want to. The <body onload> isn't working cause I can't get it to work unless I have the javascript outside the first html tag, but if i do that, i don't know how to make it so the scripts can pull the data off the url if I don't use the form tag. I could use some help.
I know this is terrible programming and completely insecure, but it doesn't matter, it is the interface that matters not the guts of the backend...
I am programming in javascript and html.
I pass a bunch of variables on the url:
called.html?a=1&b=2&c=3 ...etc...
when called.html gets loaded I need to take one of the variables off the url and display it in the middle of the page...
kind of like:
XXXXXXXXXXXXXXXXXx
XXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXX
a = <insert value here>
XXXXXXXXXXXx
XXXXXXXXXXXXXX
XXXXXXXXXXXX
So the way I get the variables off the url is by naming the html page is with the FORM tag. and then calling the page by name within the javascript.
but I can't figure out as the page is loading how to call the javascript to grab that variable from the url and then display it where I want to. The <body onload> isn't working cause I can't get it to work unless I have the javascript outside the first html tag, but if i do that, i don't know how to make it so the scripts can pull the data off the url if I don't use the form tag. I could use some help.
I know this is terrible programming and completely insecure, but it doesn't matter, it is the interface that matters not the guts of the backend...