Categories:
.NET (961)
C (387)
C++ (185)
CSS (84)
DBA (8)
General (28)
HTML (48)
Java (641)
JavaScript (220)
JSP (109)
JUnit (31)
MySQL (297)
Networking (10)
Oracle (562)
Perl (48)
Perl (9)
PHP (259)
PL/SQL (140)
RSS (51)
Software QA (27)
SQL Server (5)
Struts (20)
Unix (2)
Windows (3)
XHTML (199)
XML (59)
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, 5033👍, 0💬
Popular Posts:
Are CAO stateful in nature ? Yes. In CAO remoting model client creates a instance on server and inst...
How Is the Width a Parent Element Related to Child Elements? - CSS Tutorials - Understanding Multipl...
Example of using Regular Expressions for syntax checking in JavaScript ... var re = new RegExp("^(&a...
How many types of validation controls are provided by ASP.NET ? There are six main types of validati...
How Can we change priority & what levels of priority are provided by Dot Net? Thread Priority ca...