Javascript Reference
Categories: text

javascript text blur( )

@July 9, 2008, 3:35 p.m.
blur( ) Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM 1  

 

 

Removes focus from the current text object, at which time the text object's onblur event fires. Note that the range of elements capable of focus and blur (both the event and method) is limited in all browsers except for more recent versions of IE (see the shared tabindex attribute). Most reliably for backward compatibility, apply the blur( ) method to blatantly focusable elements, such as text input and textarea elements. Assigning the attribute onfocus="this.blur( );" to a text input element, for instance, is a crude but effective backward-compatible way to largely disable a field for browsers that do not provide genuine element disabling.

 

Use blur( ) and focus( ) methods in moderation on the same page. You can inadvertently trigger endless loops of blurring and focusing if alert dialog boxes are involved along the way. Moreover, be aware that when you invoke the blur( ) method on one object, some other object (perhaps the window object) receives an onfocus event.

 
Parameters

None.

 
Returned Value

None.

coursework writing
<a href=https://brainycoursework.com>coursework science</a>
coursework on a resume
InessaEtPi - 1 years
write my college essay for me
<a href=https://buytopessays.com>professional essay writing service</a>
help me write an essay
PennyEtPi - 2 years
help with writing an essay
<a href=https://buy-eessay-online.com>buy essay writing online</a>
community service essays
ChelsaeEtPi - 2 years

Powered by Linode.