How Can I Highlight a Text Box When Clicked

Example of the Onfocus Event Handler

Enter your name:

How to Use the Onfocus Event Handler

The HTML code to create the text box is shown below:

The full Javascript code is shown below: