[thelist] js problem

Tom Dell'Aringa pixelmech at yahoo.com
Fri Sep 13 17:52:04 CDT 2002


--- ".jeff" <jeff at members.evolt.org> wrote:
> tom,
>
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> > From: Tom Dell'Aringa
> >
> > > what's your onload event handler look like?
> >
> > Right when you asked that question I figured it out -
> > was using window.onload to set it - I don't think
> > you can pass parameters that way. Moved it to the
> > body tag and it worked :P Thanks!
> ><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
>
> that's correct.  you can't pass parameters in a function call from
> an event handler in script.  however, you can use an anonymous
> function.
>
> onload = function()
> {
>   defaultFocus(document.forms[0].elements['last_name']);
> }
>
> an advantage of this is that you can now call multiple functions
> from the onload, each with their own set of arguments.
>
> enjoy,
>
> .jeff

Ah! TOTALLY forgot about that..boy it must be friday. Thanks for the
reminder!

Tom

=====
var me = tom.pixelmech.webDeveloper();

http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]

__________________________________________________
Do you Yahoo!?
Yahoo! News - Today's headlines
http://news.yahoo.com



More information about the thelist mailing list