I'd recommend using the getElementById over the formname.fieldname.focus().

And JS is parsed as it's read, for the most part, so simply putting
<script>document.getElementById('fieldIDGoesHere').focus()</script>
AFTER the field should work.  The bottom might be safer, and window.onload
is swell if you have a "multi" window.onload function, as lots of JS stuff
uses
it, so a single "window.onload = someFunction()" kills other stuff, whereas
"window.onload = window.onload & someFunction" [not real code] will play
nicer with others.

Just more fyi type stuff.


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237651
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to