trying to get it so any click on the textbox will select the entire text. What's wrong with this?

<script language="javascript">
function selectBox(f){
alert(f);
document.formhandheld.f.select();
}

<script>





<input type="text" value="testing" onClick="selectBox(this)">