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 body.style.background = "yellow"; } function keypress(){ document body.style.background = "lightgreen"; } function keyup(){ document body.style.background = "cyan"; }
</script>
First Name:

last Name:

email:

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: