Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
How to set the focus in an element using JavaScript?
How to set the focus in an element using JavaScript?
✍: Guest
Use the "focus()" method of the element object:
<script>
function setFocus() {
if(focusElement != null) {
document.forms[0].elements["myelementname"].focus();
}
}
</script>
2010-10-19, 4074👍, 0💬
Popular Posts:
What exactly happens when ASPX page is requested from Browser? Note: - Here the interviewer is expec...
Does it matter in what order catch statements for FileNotFoundException and IOExceptipon are written...
Rachel opened her math book and found that the sum of the facing pages was 245. What pages did she o...
. How can a servlet refresh automatically if some new data has entered the database? You can use a c...
How to reduce the final size of an executable file? Size of the final execuatable can be reduced usi...