YouTip LogoYouTip

Prop Url Type

# HTML DOM Input URL type property\n\n[![Image 8: Input URL Object Reference](#) Input URL Object](#)\n\n## Example\n\nReturn the form element type of the URL field:\n\n```javascript\nvar x = document.getElementById("myURL").type;\n\n_x_ The output result is:\n\nurl\n\n[Try it Β»](#)\n\n* * *\n\n## Definition and Usage\n\nThe type property returns the form type of the URL field.\n\nFor input type="url", the property usually returns "url".\n\n* * *\n\n## Browser Support\n\n![Image 9: Internet Explorer](#)![Image 10: Firefox](#)![Image 11: Opera](#)![Image 12: Google Chrome](#)![Image 13: Safari](#)\n\nThe type property is supported in all major browsers.\n\n**Note:** Internet Explorer or Safari browsers do not support the HTML element with the type="url" attribute.\n\n* * *\n\n## Syntax\n\n```javascript\n_urlObject_.type\n\n## Technical Details\n\n| Return Value: | A string, representing the form element type of the URL field |\n| --- |\n\n* * Input URL Object](#)
← Prop Url TypeProp Url Size β†’