📜  onfocus - 任何代码示例

📅  最后修改于: 2022-03-11 14:58:00.834000             🧑  作者: Mango

代码示例2
//The onfocus event occurs when an element gets focus
Enter your name: 

input field gets focus & a function is triggered changes the background-color.