[Off-Topic] Accessing Form attributes instead of elements

Jean-Philippe Encausse
Thu, 20 Sep 2007 10:04:22 -0000

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