HTML DOM nieruchomość typu reset
Definicja i Wykorzystanie
Właściwość type zwraca typ elementu formularza przycisk RESET.
Za pomocą przycisku potwierdzenia tego atrybutu jest zawsze "reset".
gramatyka
resetObject.type
Pomoc Browser
Wszystkie główne przeglądarki obsługują typ atrybutu
Przykłady
Przykłady
Poniższy przykład zwraca typ przycisk reset element formularz:
<! DOCTYPE html>
<Html>
<Head>
<Meta charset = "utf-8">
<Title> Ten poradnik (w3big.com) </ title>
<Script>
Funkcja displayResult () {
var x = document.getElementById ( "RESET 1") typu .;
alert (x);
}
</ Script>
</ Head>
<Body>
<Form>
E-mail: <input type = "text" id = "email">
<Input type = "reset" id = "resetowania1">
</ Form>
<Type = "button" button onclick = "displayResult ()"> input type Wyświetlacz </ button>
</ Body>
</ Html>
<Html>
<Head>
<Meta charset = "utf-8">
<Title> Ten poradnik (w3big.com) </ title>
<Script>
Funkcja displayResult () {
var x = document.getElementById ( "RESET 1") typu .;
alert (x);
}
</ Script>
</ Head>
<Body>
<Form>
E-mail: <input type = "text" id = "email">
<Input type = "reset" id = "resetowania1">
</ Form>
<Type = "button" button onclick = "displayResult ()"> input type Wyświetlacz </ button>
</ Body>
</ Html>
Spróbuj »
Resetowanie obiekty