Learn html - html tutorial - Onblur attribute in html - html examples - html programs
- The onblur attribute is used to trigger an event when the element loses its focus.
- Onblur attribute is mostly used for the form validation code.
- The onblur attribute is a part of an Event Attributes.
Syntax for onblur attribute in HTML:
Applies to:
Elements |
Attribute |
All HTML Elements |
onblur |
Attributes Values of onblur attribute in HTML:
Value |
Description |
Script |
The script can run on onblur |
Sample coding for onblur attribute in HTML:
Code Explanation for onblur attribute in HTML:
- Onblur attribute calls the JavaScript function onBlur() and is used to define that the element in the text box loses its focus.
- The function onBlur() is used to transforms the textbox text to lower case.
Output for onblur attribute in HTML:
- If we type the text “WIKITECHY” in uppercase in the text box.
- When the textbox loses its focus the text “wikitechy” turns into lowercase.
Browser Support for onblur attribute in HTML:
Related Searches to onblur Attribute in html
onblur jquery
onfocus event in javascript
onblur react
onblur event in javascript in textbox example
onblur angularjs
onblur not working
onblur vs onchange
html tutorialshtml editor html code html form html tutorial html color html color codes html table html img html5 html code for website html and css html programs html website free html editor html5 tutorial wysiwyg html editor html tutorial pdf html converter php tutorial html example html tutorial css tutorial html css html tags html basics code html html online html mailto html lang html tags list
html attributes