您的位置:首页 > Web前端 > JavaScript

js-点击输入框默认文字消失

2013-02-22 15:31 381 查看
<form id="form1" name="form1" method="post" action="">
<label for="textfield">输入内容:</label>
<input name="textfield" type="text" id="textfield" value="Dreamweaver" onmouseover="this.style.borderColor='#FF6600'" onmouseout="this.style.borderColor=''" onFocus="if (value =='Dreamweaver'){value =''}" onBlur="if (value ==''){value='Dreamweaver'}"/>
</form>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: