This example uses the addEventListener() method to attach a "focusout" event to an input element.
Write something in the input field, and then click outside the field to lose focus.
Note: Firefox does not support the onfocusout event.