[thelist] xhtml 1.1 and javascript and w3 validation
.jeff
jeff at members.evolt.org
Sun Dec 15 11:08:00 CST 2002
ppk,
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
> From: Peter-Paul Koch
>
> > document.widgets.title.focus();
>
> It tries to put the focus on the title attribute of the
> form, which is of course nonsense. Use another name for
> your form field.
><><><><><><><><><><><><><><><><><><><><><><><><><><><><><
or better yet, access the field named "title" through the elements array:
document.widgets.elements['title'].focus();
i'd even take it a step further and do the same for widgets and the forms
array. that makes it crystal clear what the intention is down the road.
document.forms['widgets'].elements['title'].focus();
good luck,
.jeff
http://evolt.org/
jeff at members.evolt.org
http://members.evolt.org/jeff/
More information about the thelist
mailing list