HTML DOM form Property
Complete Hidden Object Reference
Definition and Usage
The form property returns a reference to the form that contains the hidden
input field.
This property returns a form object on success.
Syntax
Example
The following example returns the id of the form the hidden field belongs to:
<html>
<body>
<form id="form1">
<input type="hidden" id="hidden1" />
</form>
<p>The id of the form containing the hidden element is:
<script type="text/javascript">
x=document.getElementById('hidden1');
document.write(x.form.id);
</script></p>
</body>
</html>
|
Try-It-Yourself Demos
Get the id
of the form the hidden field belongs to
Complete Hidden Object Reference
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|