9 January 2014

How to set the focus in an element using Javascript?

<script>
 function setFocus()
 {
 if(focusElement != null)
 { 
document.forms[0].elements["myelementname"].focus();
 }
 } 
</script>

No comments:

Post a Comment