Default value by using OnFocus event of a text box
We can trigger any function or perform any task by using onfocus event for the form elements. For example we want to show some text inside a text element when crusher enters into the text box. Here we will use onfocus event. If we are using tab to navigate between the form elements then for each elements of a form we can give some default value.