Re: Accessing Form attributes instead of elements

Wizz
Fri, 21 Sep 2007 05:43:03 -0000

isn''t that what the readAttribute method is for?

form.readAttribute(''name'');

On Sep 20, 12:04 pm, "Jean-Philippe Encausse"
<J...-vcK5r0oTKUrk1uMJSBkQmQ@public.gmane.org>
wrote:
> Hi,
>
> I''m sorry for this JavaScript Off topic question a little bit
tricky:
>
> I have an HML Form with:
> - An input using name="name"
> - An attibute name="formName"
>
> In JavaScript I would like to access the form''s attribute. How to
do that ?
>
> - form.name returns input
> - form[''name''] returns input
>
> Any idea ?
> Best regards and sorry for the off topic
>
> --
> Jean-Philippe Encausse - Veille / R&D Jalios SA
> Jp [at] encausse.net -http://www.encausse.com-http://www.jalias.com
> GTalk: jp.encausse [at] gmail.com - SMS: sms [at] jp.encausse.net
> Mob: +33 6 82 12 56 99 - Job: +33 1 39 23 92 83 - Tel: +33 1 39 18 90 15
> Do it Once, Use it Twice ~ Do it Twice, Make It Once