No I am refering to DOM. e.g.
var tr = document.createElement("tr");
var td = document.createElement("td");
tr.appendChild(td);
tr.setAttribute( "style", "font-size:xx-small");
thead.appendChild(tr);
The setAttribute only works on FF and Opera not IE.
Aaron
"Randy Webb" <Hi************@aol.comwrote in message
news:Xv********************@telcove.net...
Aaron Gray said the following on 12/14/2006 10:59 PM:
>Hi,
I have written some DOM code to create a table but .setAttribute(
"style", ...) and .setAttribute( "class", ...) are not working on IE
where they _do_ work on both FF and Opera.
I am using 4.01 transitional.
Could someone give me the lowdown on this and give me an explanation
please :)
tableRef.style.property
tableRef.className
IE doesn't like setAttribute
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/