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:
Set UI Focus on the First Field of a Form
How do I set the focus to the first form field?
✍: FYIcenter
You cannot do this with HTML. However, you can include a JavaScript after the form that sets the focus to the appropriate field, like this:
<input type="text" id="myinput" name="myinput" ...>
</form>
<script type="text/javascript">
document.myform.myinput.focus();
</script>
2007-03-03, 6264👍, 0💬
Popular Posts:
How To Select Some Rows from a Table? - MySQL FAQs - SQL SELECT Query Statements with GROUP BY If yo...
What Articles Have You Read about JUnit? There are a number of JUnit articles that you should read: ...
What are the types of variables x, y, y and u defined in the following code? #define Atype int* type...
How To Define a Data Source Name (DSN) in ODBC Manager? - Oracle DBA FAQ - ODBC Drivers, DSN Configu...
How Many Tags Are Defined in HTML 4.01? There are 77 tags defined in HTML 4.01: a abbr acronym addre...