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>
2008-08-19, 4836👍, 0💬
Popular Posts:
What is the quickest sorting method to use? The answer depends on what you mean by quickest. For mos...
What is triple constraint triangle in project management ? Project Management triangle is depicted a...
What does a special set of tags <?= and ?> do in a PHP script page? <?= express...
How do I debug thread ? This window is only seen when the program is running in debug mode. In windo...
How can I implement a thread-safe JSP page? You can make your JSPs thread-safe by having them implem...