日期:2014-05-16  浏览次数:20387 次

javascript problem
<td   colspan= "2 "> <input   type= "Text "   name= "Customer "   maxlength= "65535 "   size= "37 "   value= " <?   echo   $Field[2]   ?> "   onfocus= "javascript:form1.Customer.select(); "> </td>

------解决方案--------------------
<td colspan= "2 "> <input type= "Text " name= "Customer " maxlength= "65535 " size= "37 " value= " <? echo $Field[2] ?> " onfocus= "this.select(); "> </td>
------解决方案--------------------
input得到焦点时全选input的内容
------解决方案--------------------
效果一样。 当然是用最简单的
on*****一般不需要写javascript:
<a href= "javascript:这时才需写