HTML Intro

HTML Intro Quiz

HTML Intro Exercise

HTML Basics

HTML Basic Quiz

HTML Basic Exercise

HTML Advance

HTML Advance Quiz

HTML Advance Exercise

HTML Tags List

HTML Global Attributes

HTML Attributes


HTML onmousedown Attribute

HTML onmousedown Attribute



The onmousedown attribute fires when a mouse button is pressed down on the element.


Relative mouse Events are:-


  • onmousedown
  • onmouseup
  • oncontextmenu


Used With:-


Elements Event
All elements in HTML onmousedown




Its syntax is:- < element onmousedown="your_script" >

Code Explanation

All Tutorials related to HTML Attributes

All Sections related to HTML