I'm quite new to JavaScript as a web development tool, so I hope this question is still OK.

When a submit on a web page occurs the various form parameters are passed to the action program on the submitted form. (At least I think I have that right!) In VBscript these parameters values are available, for example, as "<%=Request("myText")%>".

My question is, how to I gain access to these values in JavaScript in either the head or body of the page?

I have put "var myText = Request.Form("myText");" into the head and referenced it with "<%=myText%>" in the body. But I get nothing.

What am I missing?

Thanks in advance.