Re: [Error] backgroundColor : setting a property that has only a getter !
David BERCOT <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.dom |
|---|---|
| Message-ID | <[email protected]> |
YES !!! What a stupid error !!! Thanks a lot. David. Le Thu, 31 Jul 2008 09:07:59 -0500, [email protected] (JP. Baker) a écrit : > 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") { _______________________________________________ dev-tech-dom mailing list [email protected] https://lists.mozilla.org/listinfo/dev-tech-dom