源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

javascript 表单的友好用户体现

  • 时间:2021-05-31 11:41 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:javascript 表单的友好用户体现
<html xmlns="http://www.w3.org/1999/xhtml" > <head> <title>test</title> <script language="javascript" type="text/javascript"> function validateLength(obj) { return obj.value.length < obj.getAttribute("maxlength"); } </script> </head> <body> <label for="userName">用户名:</label> <input id="userName" type="text" maxlength="10" onmouseover="this.focus();" onfocus="this.select();" /><br /><br /> <label for="passWord">密码 :</label> <input id="passWord" type="password" onmouseover="this.focus();" onfocus="this.select();" /><br /><br /> <label for="remark">备注 :</label> <textarea id="remark" onkeypress="return validateLength(this);" onmouseover="this.focus();" onfocus="this.select();" maxlength="50" cols="50" rows="5"></textarea> </body> </html>
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部