The onreset event handler is used to carry out an action when the user clicks the Reset button. You can simply click the button and you'll see the message. Or change the text before you click the button; you'll see the text return to the original text after you click OK.
There's no way to stop a reset action once the user clicks the Reset button, though you could create a fake Reset button; see the following example.