Handle Mouse out Events - Javascript DOM Event

Javascript examples for DOM Event:onmouseout

Description

Handle Mouse out Events

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <style id="compiled-css" type="text/css">

#myDiv {//from  ww w .j  a v  a 2  s.  com
   width:250px;
   height:200px;
   background:red;
}
      </style> 
   </head> 
   <body> 
      <script>
function myFunc(x){
    console.log('yo');
}
    
      </script> 
      <div id="myDiv" onmouseout="myFunc(this)"> 
      </div>  
   </body>
</html>

Related Tutorials