YouTip LogoYouTip

Prop Url Type

# Input URL type Property [![Image 8: Input URL Object Reference](#) Input URL Object](#) ## Example Return the form element type of the URL field: ```javascript var x = document.getElementById("myURL").type; _x_ output will be: url [Try it Β»](#) * * * ## Definition and Usage The type property returns the form type of the URL field. For input type="url", this property usually returns "url". * * * ## Browser Support ![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#) The type property is supported by all major browsers. **Note:** Internet Explorer or Safari browsers do not support the HTML element with the type="url" attribute. * * * ## Syntax _urlObject_.type ## Technical Details | Return Value: | A string representing the form element type of the URL field | | --- | * * Input URL Object](#)
← Prop Url ValueProp Url Type β†’