This example uses the HTML DOM to assign an "onfocusout" event to an input element.
Write something in the input field, and then click outside the field to lose focus.
Note: This example may not work as expected in Chrome, Safari and Opera 15+.