HTML DOM Input Text form properties
Examples
Returns <input type = "text"> element in the form id:
var x = document.getElementById ( "myText") form.id.;
x The output is:
myForm
try it"
Definition and Usage
form property returns a reference to the form that contains the text field object.
This property returns the form object on success.
Note: This property is read-only attribute.
Browser Support
All major browsers support form properties
grammar
textObject .form
Technical details
return value: | Form elements contain references to the text field. If null is returned within a text field is not in form. |
---|
Input Text Object