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, 4600👍, 0💬
Popular Posts:
What is AL.EXE and RESGEN.EXE? In the previous question you have seen how we can use resource files ...
How Do I Run JUnit Tests from Command Window? To run JUnit tests from a command window, you need to ...
WHat will be the result of the following code? #define TRUE 0 // some code while (TRUE) { // some co...
Where are all .NET Collection classes located ? System.Collection namespace has all the collection c...
What are the standard ways of parsing XML document? XML parser sits in between the XML document and ...