-
JavaScript
When I am using VBscript in HTML-code I can recieve text from e.g. a textbox with this code:
<%var1=request.form("theText")%>
or
<%var1=request.querystring("theText")%>
Can this be done in JavaScript, or must I use Perl or cgi or something else if I want it to work on Netscape ??
-
Hi,
Im a bit rusty on Javascript but if I remember correctly you want the following code:
string = document.form.text
Where form is the name of the form and
text is the name of the textbox
And obviously string is the name of the variable you wana set.
Hope this helps,
ISDP
-
Hmm, no wait, thats not right, told you I was rusty, the right code is:
string = document.form.text.value
Value always remains as "value", unlike form and text it is not substituted for anything. Ive been having a few problems getting this working, so if you have any too, just say. I hope this is right now!
ISDP
-
No that's not what I wanted.
I wanted to know what the person filled in in the previous page.
-
thats not javascript you want.