Input URL type eigenschap

Definitie en gebruik

type De eigenschap retourneert het type van het formulierelement van het URL-veld.

Voor input type="url", geeft deze eigenschap altijd "url" terug.

Example

Return which type of form element the URL field is:

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

Try it yourself

Syntax

urlObject.type

Technical details

Return value: String value, representing the form element type of the URL field.

Browser support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Supported 10.0 Supported Not supported Supported