Re: "getAttribute" returns a child element instead of ...?
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: "getAttribute" returns a child element instead of ...?

From: Jasen Betts <jasen@free.net.nz>
Date: Mon Jan 30 2006 - 10:33:17 CET

On 2006-01-29, Thomas 'PointedEars' Lahn <PointedEars@web.de> wrote:
> VK wrote:
>
>> Noa wrote:
>>> Is this what you meant? -> document.forms[0].name
>>
>> See my post (""VK") again please:
>>
>> document.forms[0].elements[0].name
>> or
>> document.forms[0].elements['name'].name
>
> The OP is trying to retrieve the `form' element's name, specified by
> its `name' attribute.

hmm...

  document.forms[0].attributes['name'].value

or has someone already suggested that?

-- 
Bye.
   Jasen
Received on Tue Feb 7 21:27:08 2006