O'Reilly Answers is a community site for sharing knowledge, asking questions, and providing answers that brings together our customers, authors, editors, conference speakers, and Foo (Friends of O'Reilly). More »
The basic solution is to invoke the focus() and select() methods of the text box under inspection. An unfortunate timing bug (primarily affecting IE for Windows) prevents these calls from occurring im...
Assuming that the page always contains a form and text field with the same names, use an onload event handler to invoke the focus() method of the text box: <body onload="document.formName.f...