August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onClick="command"
The onClick property is an event handler used to handle the event of a mouse click on the Reset button.
Listing 7.452 shows an example of how the onClick event handler is used.
<html>
<head>
<title> Example of the reset onClick event handler</title>
</head>
<body>
<form name="form1">
Enter Name: <input type="text" Name="name" Size=15>
<br>
Enter Phone: <input type="text" Name="phone" Size=10>
<br><br>
<input type="reset" name=resetbutton value=Reset onClick='alert("The reset button was
clicked")'>
<br>
<br>
</form>
lt;/body>
</html>
|
Read now
Unlock full access