Henry,

      I don't know why this code didn't worked. I tryed it in
      differents way, and they all worked in IE 6 and mozilla 0.9.8
      Not in Netscape 4.78 anyway, without any error.

Watch my code :

<form action="#" name="frmEmployee">
<input type="text" name="txtName" value="tata">
<a href="#" onMouseOver="FirstFocus()">focus</a> <!-- work -->
</form>
<Script LANGUAGE="JavaScript" TYPE="text/javascript">
setTimeout("document.frmEmployee.txtName.select()",200)  //work
document.frmEmployee.txtName.select();                   //work

function FirstFocus() {
        document.frmEmployee.txtName.select();
}
document.onLoad=FirstFocus()                               //work
</script>

===========================================================================
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

Reply via email to