Re: [Error] backgroundColor : setting a property that has only a getter !
[email protected] (JP. Baker)
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Organization | University of Bristol, England |
| Message-ID | <[email protected]> |
In article <[email protected]>, Martin Honnen <[email protected]> wrote: >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"; Also: if (petits_fils[k].tagName == "span") { -- John P Baker