Kích hoạt khi nhấn xuống nút chuột trên element.
Ví dụ
<html>
<head>
<script>
function sayHello() { alert("Bạn vừa click!"); }
</script>
</head>
<body>
<p onmousedown="sayHello()">Nhấn chuột ở đây</p>
</body>
</html>
Kích hoạt khi nhấn xuống nút chuột trên element.
<html>
<head>
<script>
function sayHello() { alert("Bạn vừa click!"); }
</script>
</head>
<body>
<p onmousedown="sayHello()">Nhấn chuột ở đây</p>
</body>
</html>