HTML DOM Input URL form properties
Examples
Returns <input type = "url"> element id form belongs:
var x = document.getElementById("myURL").form.id;
x The output is: myForm
try it"
Definition and Usage
form property returns a reference to the form that contains the URL field.
This property returns the form object success.
Note: This property is read-only attribute.
Browser Support
All major browsers support form property.
Note: Internet Explorer or Safari browser does not support the use of type = "url" attribute of the HTML <input> elements.
grammar
urlObject .form
technical details
return value: | URL field contains a reference to the form elements. If the URL field is not in the form, return null. |
---|
Input URL objects