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, 5661👍, 0💬
Popular Posts:
How comfortable are you with writing HTML documents entirely by hand? Everyone has a different prefe...
How can I implement a variable field width with printf? That is, instead of something like %8d, I wa...
I am trying to assign a variable the value of 0123, but it keeps coming up with a different number, ...
.NET INTERVIEW QUESTIONS - What is Multi-tasking ? It’s a feature of modern operating systems with w...
What Happens to Your Transactions When ERROR 1213 Occurred? - MySQL FAQs - Transaction Management: C...