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, 6361👍, 0💬
Popular Posts:
What metrics will you look at in order to see the project is moving successfully? Most metric sets d...
Where Do You Download JUnit? Where do I download JUnit? I don't think anyone will ask this question ...
The object that contains all the properties and methods for every ASP.NET page, that is built is .. ...
What is the difference between include directive & jsp:include action? Difference between includ...
How does ASP.NET maintain state in between subsequent request ? Refer caching chapter.