Thursday

EVENT: onblur

onblur="action"

The onblurs event occurs when the element that is in focus, loses that focus. You use the term, in blur, to signify that an element does not have focus. Since only one element can be in focus at one time, all other elements are in blur.

By focus, we mean that the cursor is at that element. For example, if the element was an input text box in a form, the cursor would appear inside the element and you could type and enter data into the box.

These six events are useful when dealing with forms and form elements:

  • onblur - runs a script when the element loses focus.
  • onchange - runs a script when the element changes.
  • onfocus - runs a script when the element gets the focus.
  • onreset - runs a script when the form is reset.
  • onselect - runs a script when the element is selected.
  • onsubmit- runs a script when the form is submitted.





  • source

    No comments:


    ;-)