Skip to content
Advertisements

Day: February 12, 2019

JavaScript Keyboard Events

JavaScript Keyboard Events

onkeydown event The JavaScript onkeydown property occurs when the user presses a key. Syntax: HTML Attribute <element onkeydown = “handler(event)“> Event Property object.onkeydown = handler; attachEvent Method object.attachEvent(“onkeydown“, handler) addEventListener Method object.addEventListener(“keydown“, handler, useCapture) onkeydown […]