Please enable JavaScript to use CodeHS

CodeHS Glossary


mouseButton JavaScript

A system variable that tracks of which mouse button is pressed. Its value can be either LEFT, RIGHT, or CENTER depending on which button was pressed last