PDA

Click to See Complete Forum and Search --> : Forms


Amon Ra
Apr 28th, 2001, 10:22 PM
Hey guys. I have just started javascript, because I am currently writing my web page. Why wont this work?

<HTML>
<HEAD>
<TITLE> Lab </TITLE>

</HEAD>

<BODY bgcolor='white'>

<SCRIPT language="JavaScript">
<!--hide from old browsers
<form name="myform">
<input name="button">
<FORM name="myform"> <INPUT type="text" name="myTextInput" size=30 maxlength=30 value="this is a 1 line text box">
<P>
</FORM>
//-->
</SCRIPT>

</BODY>
</HTML>

I tried many times, and it wont work. It gives me a syntax error. Please help me.Thank you :)

sail3005
Apr 28th, 2001, 10:24 PM
Why do you have the form inside <script> tags. <form> is html, not javascript.

Amon Ra
Apr 28th, 2001, 10:34 PM
Ohhhh... I could have looked for a long time:) lol Thanks a lot :)

Wynd
Apr 29th, 2001, 01:32 PM
Hehehe.