Sir I am running the keybord event attributes in HTML in Chorme, it is not Runing

Html Keyboard And Mouse Events html function keydown(){ document = "yellow"; } function keypress(){ document = "lightgreen"; } function keyup(){ document = "cyan"; }
First Name:

last Name:


1 Like

:roll_eyes: :thinking: :flushed:
please complete your code to see where you getting problem.

I have same issue. Sir how we can run it properly?
Please explain it again

Keyboard Events function keypress(){ documents.body style.background="yellow"; } First Name: