Invoer Dien tipe Eiendom in
Voorbeeld
Vind uit watter tipe vormelement die Submit-knoppie is:
var x = document.getElementById("mySubmit").type;
Definisie en gebruik
Die tipe eiendom gee terug watter tipe vormelement 'n indienknoppie is.
Vir 'n submit-knoppie-objek sal hierdie eienskap altyd "submit" terugstuur.
Blaaierondersteuning
Property | |||||
---|---|---|---|---|---|
type | Yes | Yes | Yes | Yes | Yes |
Sintaksis
submitObject.type
Terugkeerwaarde
Type | Description |
---|---|
String | The type of form element the submit button is |
❮ Invoer Voorwerp Voorwerp