August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onClick="command"
The onClick event handler is fired when a submit button is clicked. Note that this is not fired in the instances where a single form object is in the form, such as a text box, and the user presses the Enter or Return key to submit the form.
Listing 7.487 has a single text box and a button. If the user presses the submit button, the Click event is fired, calling a function that changes the text in the text box to all uppercase.
<html> <head> <script language="JavaScript1.2"> <!-- Hide // Define the setText function to change the text to uppercase ... |
Read now
Unlock full access