I am trying to write a script to change the background color of the "upper" frame based on a hidden form input "id" in a different frame: "main".
I have script that works in IE:
if (parent.Top) {
if (document.nodeForm.classif
ication_id
.value == "C")
parent.Top.document.body.s
tyle.backg
roundColor
= "#33FFFF";
else if (document.nodeForm.classif
ication_id
.value == "S")
parent.Top.document.body.s
tyle.backg
roundColor
= "#FF0000";
else
parent.Top.document.body.s
tyle.backg
roundColor
= "#CCCCCC";
}
But it doesn't work in firefox.
Please help!
Start Free Trial