81,115
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
</head>
<body>
<input id="search" value="请输入搜索内容" onfocus="doSearch();">
</body>
</html>
<script>
function doSearch(){
alert("aaa");
document.getElementById("search").value="";
}
</script>
<html>
<body>
<input type='text' value='请输入搜索内容' id='hello'
onfocus='this.value=""' onblur='if(this.value==""){this.value="请输入搜
索内容"}'/>
</body>
</html>