This example uses the HTML DOM to assign an "onfocusin" event to an input element.

Enter your name:

Note: Firefox does not support the onfocusin event.

Note: This example may not work as expected in Chrome, Safari and Opera 15+.