Use the HTML DOM to assign an "onfocusout" event to an input element.
Write something in the input field and click outside the field to lose focus.