input 点击背景改变颜色

Original 2019-04-10 14:26:53 304
abstract:<!DOCTYPE html><html><head><meta charset="UTF-8"><title></title></head><body><script type="text/javascript">function myfovus(x

<!DOCTYPE html>

<html>

<head>

<meta charset="UTF-8">

<title></title>

</head>

<body>


<script type="text/javascript">

function myfovus(x) {

x.style.background="red"

}

</script>

姓名:<input type="text" onfocus="myfovus(this)"></input>

</body>

</html>



Correcting teacher:查无此人Correction time:2019-04-10 15:40:38
Teacher's summary:完成的不错。下次缩进代码,每行js代码结束,增加;号。继续加油

Release Notes

Popular Entries