Description: Illustrates the JavaScript syntax for the onfocus Event.
Syntax: Object.onfocus="yourjavascriptcode()" – Allows you to know when onfocus event occurs.