Interviewer And Interviewee Guide

JavaScript Interview Question:

How to set the focus in an element using Javascript?

Submitted by: Administrator
Setting the focus in an element using JavaScript

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

Read Online JavaScript Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.