Skip to main content
Write a JavaScript program which displays an alert message on MouseOver Event of an Image.
CODING:
<!DOCTYPE HTML>
<html>
<head>
<title></title>
<script>
  function image()
{
 alert("DO NOT TRY THIS HOME,SCHOOL & ANYWHERE!");
}
</script>
</head>
<body>
<img src="donot.jpg" width="400px" height="400px" onmouseover="image()">
</body>
</html>

Comments