HTML | DOM TouchEvent metaKey Property
The TouchEvent metaKey property is a read-only property and used for returning a Boolean value which indicates whether or not the “meta” key was pressed when a touch event triggered.
It mostly returns false because generally, touch devices do not have a meta key.
Return Value: It returns true if the meta key is pressed, else it returns false.
Below program illustrates the TouchEvent metaKey property :
Example: Finding out whether the “Meta” key was pressed on the touch screen or not.
- Before clicking the button:
- After clicking the button:
- Internet Explorer
- Google Chrome
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.