Idocs Guide to HTML
back to <BODY onFocus="...">

Example of BODY onFocus and onBlur

This page is an example of the onFocus and onBlur event handlers of the <BODY ...> tag. When the page receives the focus the status bar reads "focused". When it loses the focus the status reads "not focused".

Try clicking in the page and then somewhere outside the page to watch the onFocus and onBlur events. Copyright 1997-2002 Idocs Inc. Content in this guide is offered freely to the public under the terms of the Open Content License and the Open Publication License. Contents may be redistributed or republished freely under these terms so long as credit to the original creator and contributors is maintained.