ZVON > References > DOM2 Reference

blur (method )

Owning interface and usage:  
HTMLSelectElement.blur()

Member of these other interfaces:  
none

Description:  
Removes keyboard focus from this element.

Parameters:  
none

Returns:  
nothing

Exceptions:  
none


Example:
Source:
   <SELECT id="component-select">
      <OPTION value="Component_1_a" selected="selected">Component_1</OPTION>
      <OPTION value="Component_1_b">Component_2</OPTION>
      <OPTION value="Component_2_a">Component_3</OPTION>
   </SELECT>
JavaScript:
  function focusSelect() {
    var main = document.getElementById('component-select');
    main.focus();
  }
  function blurSelect() {
    var main = document.getElementById('component-select');
    main.blur();
  }
Try it:    
See it: