/

HTML / CSS / JavaScript Tutorial

JavaScript DOM MouseEvent property: which

[this page | pdf | back links]

The which property of MouseEvent objects within the JavaScript DOM (i.e. events triggered by an action with the mouse) returns which mouse button was pressed (its output is more consistent between browsers than the button property).

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile