-
Forms
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 :)
-
Why do you have the form inside <script> tags. <form> is html, not javascript.
-
OK
Ohhhh... I could have looked for a long time:) lol Thanks a lot :)
-