|
In IE, you can have:
<div id='mydiv' foo='bar'>
and access the value with mydiv.foo (which is very helpful for passing params to the javascript). This doesn't appear to work in Netscape, although you can assign a value to mydiv.foo in javascript.
Am I missing something? Is there a way to put arbitrary attributed on a div tag with Netscape?
Thanks!
Charles.
|
|
|
Doh! I figured it out right after posting this...
In Netscape you can have the attribute in the tag, but you must use:
fooVal = mydiv.getAttribute("foo");
to access it in javascript.
|
|
|
|
|
|
|
|