Jim Lawrence
accessd at shaw.ca
Tue May 30 23:32:52 CDT 2006
Hi David: The following is air code but some similar code should work... have a real example but can not remember where it is at the moment: <!-- 1. Add this function --> SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript"> <!-- Function text_focus1() { document.forms[0].textbox1.focus() } //--> </SCRIPT> ... <!-- 2. Use DIV tag to encapsulate html text area tag --> <div onClick="text_focus()"> <textarea cols="25" rows=3 name="textbox1" wrap> Enter text here... </textarea> </div> This is not specifically done through .Net but this would be the direct approach. This is by no means completed code but it should be a start. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of David Emerson Sent: Tuesday, May 30, 2006 2:13 PM To: accessd at databaseadvisors.com Subject: [AccessD] Dot Net 2.0 - Clicking into Text Boxes I have a text box on my web page. When using a mouse, users can only go into the box when they click on text already entered. If they click in part of the box that doesn't have any text then the cursor doesn't move to the box. Also, if they delete everything in the box then the only way they can get back to the box is to click on the associated label (which also works if some text is in the field) This is confusing for the users. Is it possible to make a change so that clicking anywhere in a text box will move the cursor into the box? Regards David Emerson Dalyn Software Ltd New Zealand -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com