Afficher un message
Vieux 19/03/2008, 15h52   #7
Jonathan N. Little
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Page background color won't change.

test9991014@yahoo.com wrote:
> This worked
>
> var foo=document.getElementsByTagName("body")
> foo[0].style.background="red"


Yes it s when you

a) use the correct function name, yes it is case sensitive
b) take note of the return value

It "works" if client has JavaScript enabled.


--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
  Réponse avec citation
 
Page generated in 0,04688 seconds with 9 queries