2depressed2getdressed

In how to, internet, love, meaning of, poem on October 8, 2009 at 7:42 pm
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

    Advertisements

    Leave a Reply

    Fill in your details below or click an icon to log in:

    WordPress.com Logo

    You are commenting using your WordPress.com account. Log Out / Change )

    Twitter picture

    You are commenting using your Twitter account. Log Out / Change )

    Facebook photo

    You are commenting using your Facebook account. Log Out / Change )

    Google+ photo

    You are commenting using your Google+ account. Log Out / Change )

    Connecting to %s

    %d bloggers like this: