<!DOCTYPE html>
<html lang="en-US">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head>
<body>
<h1>jQuery mousemove() Method</h1>
<p>Try to move the mouse over this paragraph.</p>
<button>Trigger mousemove Event</button>
<script>
$(document).ready(function(){
$("p").mousemove(function(){
alert("mouse is moved over p");
});
$("button").click(function(){
$("p").mousemove();
});
});
</script> </body>
</html>