[thelist] XHTML and onLoad

Eric Vitiello evolt at perceive.net
Tue Mar 5 09:11:23 CST 2002

-- Sharon F. Malone [Tue, 5 Mar 2002 06:10:54 -0800]:
>Anyone know how this affects (if it does at all) older browsers
>reading js code? Is there any relationship?
>> Try "onload" instead of "onLoad".
>> >
>> >Line 67, column 14:
>> >  <body onLoad="document.login.username.focus()">
>> >         ^Error: there is no attribute "onLoad" for this
>>element (inthis HTML version)

this won't affect older browsers at all.  The reason onload works and onLoad doesn't is that XHTML is case sensitive.  Older browsers are not, so it won't matter.

Eric Vitiello
Perceive Designs

More information about the thelist mailing list