'ctrlKey' Example : Key Event « Event « JavaScript DHTML
- JavaScript DHTML
- Event
- Key Event
'ctrlKey' Example
<html>
<body>
<input type="button"
value="Click this button while pressing either Ctrl key"
onClick="alert(event.ctrlKey);">
</body>
</html>
Related examples in the same category