on
英[ɒn] 美[ɑ:n]
prep. (indicating direction) to; (indicating object) to; (indicating position) on...; (indicating time) at the time of...
adv. (put, wear, connect) on; forward, (continue) go on
adj. active situation, state ; in use; happening; planned
reset
英[ˌri:ˈset] 美[riˈsɛt]
vt.重Reset; rearrange; reinstall
n. Replace; replay something
vi. Reset; clear
Third person singular: resets Present participle: resetting Past tense: reset Past participle: reset
javascript onreset attribute syntax
Function: Occurs when the reset button in the form is clicked.
Syntax: onreset="SomeJavaScriptCode"
Parameters: SomeJavaScriptCode Required. Specifies the JavaScript to be executed when this event occurs.
javascript onreset attribute example
<html> <head> <meta charset="UTF-8"> </head> <body> <form onreset="alert('表单将被重置')"> Firstname: <input type="text" name="fname" value="John" /> <br /> Lastname: <input type="text" name="lname" /> <br /><br /> <input type="reset" value="Reset"> </form> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance