Run ❯
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
JavaScript HTML Events
The onfocus Attribute
Enter your name:
When the input field gets focus, a function is triggered which changes the background-color.