<input name="colName" type="text" value="点击input全选中内容" onclick="focus();select()" />
<input name="colName" type="text" id="colName" value="点击input全选中内容2" onmouseover=this.focus();this.select();
onclick="if(value==defaultValue){value='';this.style.color='#000'}"
onBlur="if(!value){value=defaultValue;this.style.color='#999'}" style="color:#999" />