What is the use of blur function in javascript? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the use of blur function in javascript?

I know that there is blur function in jquery,but my question is regarding JavaScript ..What is the use of blur function in JavaScript explain with some example code..

12th Dec 2019, 6:56 AM
swali1
4 Answers
+ 1
There is no blur function in javascript
12th Dec 2019, 7:16 AM
Calviղ
Calviղ - avatar
+ 1
The HTMLElement.blur() method removes keyboard focus from the current element.
12th Dec 2019, 7:50 AM
Calviղ
Calviղ - avatar
0
Blur function is used to remove the focus from the specified object.
12th Dec 2019, 7:28 AM
swali1
0
Hi @Calviղ can you provide an example for blur() in javascript. P.S. cool profile pic ! 🤩
12th Dec 2019, 8:34 AM
swali1