HTML DOM Input URL type property
Examples
Returns the URL field of the form element type:
var x = document.getElementById ( "myURL") type.;
x The output is: url
try it"
Definition and Usage
type Form Type property returns type URL field.
For input type = "url", the property usually returns the "url".
Browser Support
All major browsers support attribute type
Note: Internet Explorer or Safari browser does not support the use of type = "url" attribute of the HTML <input> elements.
grammar
urlObject .type
technical details
return value: | String representing the URL field type form elements |
---|
Input URL objects