1. Computing & Technology

Onfocus

From , former About.com Guide

See More About:
Definition: The onfocus event is used to define actions to be taken when the object to which the event is attached gains the focus ie. bocomes current. This is not a reserved word so you can declare your own variable or function called onfocus but if you do then you will not be able to use this event.
Examples:
<input type="text" onfocus="initValue(this)"

©2012 About.com. All rights reserved.

A part of The New York Times Company.