Easy Tutorial
❮ Prop Canvas Font Prop Video Videotracks ❯

Input URL type Attribute

Input URL Object

Example

Returns the type of the form element for the URL field:

var x = document.getElementById("myURL").type;
url

Definition and Usage

The type attribute returns the type of the form field for URL.

For input type="url", this attribute typically returns "url".


Browser Support

All major browsers support the type attribute.

Note: Internet Explorer or Safari do not support the HTML <input> element with type="url".


Syntax

Technical Details

| Return Value: | String, representing the type of the form element for the URL field | | --- | --- |

❮ Prop Canvas Font Prop Video Videotracks ❯