All Objects
Form
PROPERTY: Textarea::form
textarea.
form
This property returns a reference to the
Textarea
object's parent
Form
.
The following code dispays the name of the
Textarea
object's parent
Form
when it is clicked and assumes, for the purposes of this example, that the
Form
is called "myForm".
Code:
<TEXTAREA NAME="txtArea" VALUE="This is a Textarea object"></TEXTAREA>
<script language="javascript">
document.write ("The parent form of this Textarea is " + document.myForm.txtArea.form.name)
</script>
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information