This example uses the HTML DOM to assign an "onblur" event to an input element.
Write something in the input field, and then click outside the field to lose focus (blur).