Scripts for Article on Adapting Forms. To add focus to the a form, I use a little javascript routine that is run when the page is run.
Step#1
Step#2 <script language=javascript><!-- function firstFocus() { if (document.forms.length > 0) { var TForm = document.forms[0]; for (i=0;i<TForm.length;i++) { if (TForm.elements[i].type=="text") { document.forms[0].elements[i].focus(); break; } } } } // --> </script> | |||
The Spire Project - better ways to find information. Like this? You should attend our public seminar and receive our bi-monthly update notice. | SpireProject.com | SpireProject.co.uk | Project Background | Feedback. Copyright©David Novak 2002. |