onmousedown इवेंट तब ट्रिगर होता है जब माउस बटन दबाया जाता है।
उदाहरण
JavaScript में onmousedown इवेंट के साथ काम करना सीखने के लिए निम्न कोड चलाएं:
<html>
<head>
<script>
<!--
function sayHello() {
alert("You clicked here.");
}
//-->
</script>
</head>
<body>
<p onmousedown="sayHello()">This is demo text. The onmousedown event triggers when a mouse button is pressed</p>
</body>
</html>