Form Focus on Element

[Total: 0    Average: 0/5]

This shows how to use some trigger to bring the focus() to a form’s textfield.

Body Code:

<form name="ef1">
<input name="t1" type="text" value="">
</form>
<a href="javascript:document.ef1.t1.focus()">focus in the box</a>

Times Viewed: 3

Leave a Reply

Your email address will not be published. Required fields are marked *