InterviewSolution
Saved Bookmarks
| 1. |
Why do we use some() method in JavaScript? |
|
Answer» The blur event triggers when object loses focus. An EXAMPLE here displays that we write a name in the textbox and then when the object loses focus, the text COLOR is changed. This happens SINCE the blur event triggers when the focus ends: <!DOCTYPE HTML> <html> <body> <h2>Type your name</h2> <input type="text" onblur="display(this)"> <script> FUNCTION display(z) { z.style.color = "green"; } </script> </body> </html> |
|