2080 4

CSC329 ยท 2080 ยท 5 marks

What are HTML keyboard events? Write a script to display a message 'Hello world' on keypress event.

What are HTML keyboard events? Write a script to display a message 'Hello world' on keypress event. [5]

Web TechnologyChapter 2: Hyper Text Markup LanguageHTML Events

Keyboard events are events that are triggered when a user interacts with the keyboard. The three keyboard event attributes are: Attribute Description ------------------------ onkeydown Fires/runs when a user is pressing a key (key held down) onkeypress Fires when a user presses a key onkeyup Fire...