Answers

Question and Answer:

  Home  JavaScript

⟩ How to set the 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>

 205 views

More Questions for you: