| Just as a note to this
| > 2) if you already have an onload handler in the body tag, you
can
| > use the below javascript, place it just after the body tag:
| >
| > <script>
| > document.formname.fieldname.focus();
| > </script>
|
| You would need to place this after the form element you want to
focus - not
| just after the body tag. If you try and address a form element
with
| javascript before the form element appears in the page you'll
get an error,
| eg
| Bad
| <script>
| document.formname.fieldname.focus();
| </script>
| <form>
| ...your form fields
| </form>
| Good
| <form>
| ...your form fields
| </form>
| <script>
| document.formname.fieldname.focus();
| </script>
|
|
|
| Jon
| Microsoft MVP - FP
Thanks Jon, I appreciate the info. I'd gotten these two quite
some time ago and had only use the onload handler so I wasn't
aware of having to place the script after the form.
Regards,