Answers

Question and Answer:

  Home  Expert JavaScript Developer

⟩ How to set focus in an element using Javascript?

Setting the focus in an element using JavaScript:

<script>

function setFocus() {

if(focusElement != null)

{

document.forms[0].elements["myelementname"].focus();

}

}

</script>

 190 views

More Questions for you: