Javascript examples for jQuery Method and Property:mouseover
Mouseover event firing
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.0.js"></script> <script type="text/javascript"> $(window).load(function(){/* ww w . ja v a 2 s. c om*/ $(function(){ $('#test').mouseover(function(){ $(this).html("test*<script>console.log('mouse over fired!');<" + "/script>*test"); }); }); }); </script> </head> <body> <div id="test"> This is a test! </div> </body> </html>