I would like to be able to set a form's focus to the first textbox on a
JSP. As this is client-side programming, must I do it via JavaScript?
I've tried inserting the following at the top of a JSP, without the
desired effect:
<Script LANGUAGE="JavaScript" TYPE="text/javascript">
function FirstFocus() {
document.frmEmployee.txtName.focus();
}
</SCRIPT>
Am I really way off base? Please let me know. Thanks!
Henry
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://archives.java.sun.com/jsp-interest.html
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.jsp
http://www.jguru.com/faq/index.jsp
http://www.jspinsider.com