Please bear with me. I am new and self-learning programming with JavaScript. I'd like to know the correct code for the onmouseout event that works in concert with the onmouseover event in this program. The end result would be to get hide the alert box on the html page when the mouse leaves the area of action for the onmouseover event:
<! DOCTYPE html>
<html>
<head>
<title>Product Information</title>
<script>
function Product1Info() {
alert("Summer Product! On sale until Labor Day for $9.99.");
}
function Product2Info() {
alert("One of our best sellers! A bargain at $19.50.");
}
function Product3Info() {
alert("Everyone could use one of these at $1.99!");
}
</script>
</head>
<body>
<h1>Fran's Place<br>Shop our inventory!</h1>
We've got everything you need!<br>
<img src ="product1.jpg" height="300px" width="200px"
border="5" style="border-color:blue;" onmouseover="Product1Info()" /></div>
<img src ="product2.jpg" height="300px" width="200px"
border="5" style="border-color:red;" onmouseover="Product2Info()" /></div>
<img src ="product3.jpg" height="300px" width="200px"
border="5" style="border-color:black;" onmouseover="Product3Info()" /></div>
</body>
</html>