Prop Url Type
# Input URL type Property
[ 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

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](#)
YouTip