"form1" & "textfield" should be the name of your form & textfield,
respectively. They can be named *anything* that you want, you just have to
make sure they are the same in *both* your HTML page & JavaScript function.
Sam
"davaze" <webforumsuser (AT) macromedia (DOT) com> wrote
Quote:
I don't know what is going wrong but my browser keeps telling me that
there's an error on the page. I included the javascript function between the
|
<Head> tag and the <script language="javascript" type="text/javascript"> and
called it with the onclick="clearText()".
Quote:
I get the error: form1.textfield is no object
from my browser.
What is wrong?? |