Javascript examples for DOM Event:onfocusout
The onfocusout event occurs when an element is about to lose focus.
Bubbles | Yes |
---|---|
Cancelable | No |
Supported HTML tags: | ALL HTML elements, EXCEPT: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title> |
<!DOCTYPE html> <html> <body> <input type="text" onfocusout="myFunction()"> <script> function myFunction() {//from w ww. j ava 2 s .co m console.log("Input field lost focus."); } </script> </body> </html>