Forum : How to set the focus in an element using Javascript?
Brief description  about Online courses   join in Online courses
View prabeen  patra 's Profile

How to set the focus in an element using Javascript?

How to set the focus in an element using Javascript?
Asked by prabeen patra | Mar 22, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
HI Prabeen,
<script> function setFocus() { if(focusElement != null) { document.forms[0].elements["myelementname"].focus(); } } </script>
Mar 22, 2010