Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] How do I retrieve values from custom attributes on a DIV?
- From: javascript@xxxxxxxxxx (Peter-Paul Koch)
- Subject: [Javascript] How do I retrieve values from custom attributes on a DIV?
- Date: Fri, 21 Jun 2002 08:40:23 +0000
>I have a DIV with several custom attributes on it...
>
> <div id="areaTwo"
> name="areaTwo"
> bgColor="red"
> sizeControl="false"
> minH="50"
> minW="50"
> bufRt="100"
> bufBt="50"
> onClick='displayIt()'>Area 2</div>
>
>In IE 4/5 I can retrieve these values, but I can't find a way to get them
>in
>NN4/6.
NN4: Impossible. NN6: Try
document.getElementById('areaTwo').getAttribute('sizeControl');
Not sure if this works, but it's your best chance.
ppk
_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
- Prev by Date: [Javascript] How do I retrieve values from custom attributes on a DIV?
- Next by Date: [Javascript] querystring?
- Previous by thread: [Javascript] querystring?
- Next by thread: [Javascript] How do I retrieve values from custom attributes on a DIV?
- Index(es):