The mouseEvent altKey property is used to define whether the alt key is pressed or not. It is a boolean value. When the alt key is pressed then on click of the mouse buttons it returns true and if it is not pressed then it returns false.
Return Value: It returns a boolean value indicating whether the alt key is pressed or not.
- true: it indicates the alt key is pressed
- false: it indicates the alt key is not pressed
Example: In this example, we will see the example of MouseEvent altKey property.
Supported Browsers: The browser supported by mouseEvent altKey Property are listed below:
- Apple Safari
- Google Chrome
- Internet Explorer
My Personal Notes arrow_drop_up
Please Login to comment...