James Barash
James at fcidms.com
Thu May 6 12:15:05 CDT 2004
Paul Try something like this: <form name="Login"> <input type="text" name="Username" /input> <script language="JavaScript"> document.forms.Login.Username.focus() </script> </form> You just need to add the script code in the form definition. It works in IE and Netscape. I don't know about other browsers. James Barash -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Thursday, May 06, 2004 10:24 AM To: accessd Subject: [AccessD] OT-HTML Setting Focus To A TextBox To all, Sorry about the HTML OT's but don't know where else to ask. I now have a working logon page which queries an Access database. What I would like is when the logon page appears is to have the focus set to Username. Does anyone have any idea how I do this ? Also can anyone recommend a good HTML/ASP list ? Thanks in advance Paul Hartland -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com