Re: [Error] backgroundColor : setting a property that has only a getter !
Martin Honnen <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | Liberty Development |
| Message-ID | <[email protected]> |
David BERCOT wrote:
> if (petits_fils[k].tagName = "span") {
> petits_fils[k].style.backgroundColor:yellow";
The proper syntax is
petits_fils[k].style.backgroundColor = "yellow";
--
Martin Honnen
http://JavaScript.FAQTs.com/