I'm a few weeks new to JS, and am having a problem. I have a simple INTERNAL style in a web page and I know that style is working. The problem arises when I try to run a script that changes one of that style's properties.
The style is...
--------------------------------------------------
..xtable, .xtable TD, .xtable TH
{
background-color:black;
color:white;
font-family:arial;
}
-------------------------------------------------
(the above style is workinh OK), but the following script gets the error "document.class es.xtable" is null or not an object.
---------------------------------------------------
function testerx()
{
document.classe s.xtable.all.co lor='Yellow'
}
--------------------------------------------------
Both of these are in the <HEAD> section, and I've tested it with the style both before and after the script.
Thsnks.
---Robert---
The style is...
--------------------------------------------------
..xtable, .xtable TD, .xtable TH
{
background-color:black;
color:white;
font-family:arial;
}
-------------------------------------------------
(the above style is workinh OK), but the following script gets the error "document.class es.xtable" is null or not an object.
---------------------------------------------------
function testerx()
{
document.classe s.xtable.all.co lor='Yellow'
}
--------------------------------------------------
Both of these are in the <HEAD> section, and I've tested it with the style both before and after the script.
Thsnks.
---Robert---
Comment