HTML and CSS Reference
Enter your name:<br />
Enter your address:<br />
onFocus="this.select()" / >
Click here to submit your form</a>
Click here to reset your form</a>
A form named myform is started.
This is the URL where the form will be processed after it is submitted.
The onFocus event handler is assigned an event method called select() . For this
textbox, when the mouse cursor is clicked in the box, the onFocus event is trig-
gered and the event is handled by highlighting or selecting the text in the box.
Another textbox is defined to hold the user's address.
When the cursor is moved into this field, the textbox gets focus and the select()
method is called to highlight this box, as in line 3.
A deactivated link is assigned an onClick event handler. When the user clicks the
by a reference to the form and a submit() method, which causes the form to be