Re: Javascript call to FORM
From: Ryan Stewart (zaphod_at_no.texas.spam.net)
Date: 12/23/03
- Next message: John Wunderlich: "Re: Inaccessible web server behind router inspite of port forwarding"
- Previous message: Alexgao: "To Ryan Steward"
- In reply to: Alex Ostrikov: "Javascript call to FORM"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 22 Dec 2003 21:01:36 -0600
"Alex Ostrikov" <aostrik@hotmail.com> wrote in message
news:w6NFb.11580$WQ3.8489@lakeread05...
> Hello all !!!
>
> I have next HTML code:
> <FORM>
> <INPUT type="hidden" name="hidden1" value="value1">
> <script type="text/javascript">
> alert(this.form.hidden1.value);
> </script>
> </FORM>
>
> But alert doesn't appear. Why ?
>
Try:
<form name="form1">
<input type="hidden" name="hidden1" value="value1">
</form>
<script type="text/javascript">
<!--
alert(document.form1.hidden1.value);
-->
</script>
- Next message: John Wunderlich: "Re: Inaccessible web server behind router inspite of port forwarding"
- Previous message: Alexgao: "To Ryan Steward"
- In reply to: Alex Ostrikov: "Javascript call to FORM"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]