<!DOCTYPE html>
<html>
<meta charset="UTF-8">
<head>
</head>
<body>
<input type="text" id="input1" onfocus="onload_1(this)">
<script>
function onload_1(obj) {
obj.style.background = "red"
}
</script>
</body>
</html>
javascript onfocus练习代码
猜你喜欢
转载自blog.csdn.net/weixin_45949073/article/details/107961756
今日推荐
周排行