this is the code i'm using:


Code:
<input type="text" name="textboxName" value="initial value" onClick="javascript:this.form.textboxName.focus();this.form.textboxName.select();">
when a user clicks in the box, the value in the box is highlighted. how would i change the javascript so that i don't have to hardcode "textboxName" into the code?