ZVON > References > DOM2 Reference

blur (method )

Owning interface and usage:  
HTMLTextAreaElement.blur()

Member of these other interfaces:  
none

Description:  
Removes keyboard focus from this element.

Parameters:  
none

Returns:  
nothing

Exceptions:  
none


Example:
Source:
   <TEXTAREA id="textInput">
     text to enter
   </TEXTAREA>
JavaScript:
  function focusTextArea() {
    var main = document.getElementById('textInput');
    main.focus();
  }
  function blurTextArea() {
    var main = document.getElementById('textInput');
    main.blur();
  }
Try it:    
See it: