[Javascript] How do I retrieve values from custom attributes on a DIV?

TomMallard mallard at serv.net
Fri Jun 21 09:53:58 CDT 2002


Forgot to say that's javascript 1.2, won't work for NS4, NS6 has the 1.2
engine so it's OK to use document.all

tom
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of TomMallard
Sent: Friday, June 21, 2002 7:38 AM
To: javascript at LaTech.edu
Subject: RE: [Javascript] How do I retrieve values from custom
attributes on a DIV?


did you try

document.all.item("areaTwo").value

tom mallard
seattle

-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
Behalf Of Walter Torres
Sent: Thursday, June 20, 2002 10:43 PM
To: javascript at LaTech.edu
Subject: [Javascript] How do I retrieve values from custom attributes on
a DIV?


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.

Any ideas?

Walter

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list