How to set focus in an element using Javascript?
Submitted by: AdministratorSetting the focus in an element using JavaScript:
<script>
function setFocus() {
if(focusElement != null)
{
document.forms[0].elements["myelementname"].focus();
}
}
</script>
Submitted by:
<script>
function setFocus() {
if(focusElement != null)
{
document.forms[0].elements["myelementname"].focus();
}
}
</script>
Submitted by:
Read Online Expert JavaScript Developer Job Interview Questions And Answers
Top Expert JavaScript Developer Questions
| ☺ | What does JavaScript null mean? |
| ☺ | Where are the best JavaScript resources on the Web? |
| ☺ | How to assign object properties? |
| ☺ | Name numeric constants representing max, min values? |
| ☺ | Tell me to put a "close window" link on a page? |
Top Scripting language Categories
| ☺ | AngularJS Interview Questions. |
| ☺ | Ext-JS Interview Questions. |
| ☺ | Dojo Interview Questions. |
| ☺ | Expert Developer JavaScript Interview Questions. |
| ☺ | SWFObject Interview Questions. |
