The onmouseover
attribute event is triggered
when the mouse point is over the element.
None.
<element onmouseover="script or Javascript function name">
All HTML elements, EXCEPT:
<base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, <title>
onmouseover |
Yes | Yes | Yes | Yes | Yes |
<!DOCTYPE html>
<html>
<body>
<!-- w ww . j a v a2 s . c om-->
<p id="p1" onmouseover="onmouseOver()" onmouseup="mouseUp()">
Click the text!
</p>
<script>
function onmouseOver() {
console.log("onmouseOver");
}
function mouseUp() {
console.log("up");
}
</script>
</body>
</html>