Javascript

Topic: JS HTML DOM

How to set the focus in an element using Javascript? 

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

Browse random answers: