~语过添情

导航

2009年6月22日

文本框得到焦点,并清空文本框内容

摘要: 第一种、得到焦点,并清空文本框内容<script> function cls(){ //捕获触发事件的对象,并设置为以下语句的默认对象 with(event.srcElement) //如果当前值为默认值,则清空 if(value==defaultValue) value="" } function res(){ //捕获触发事件的对象,并设置为以下语句的默认对象 with(even... 阅读全文

posted @ 2009-06-22 08:50 ~语过添情 阅读(1083) 评论(0) 推荐(0) 编辑