function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
prb112075prb112075 

Does anyone know how to change the background color of a page using javascript in an s-control

using a simple statement like 'document.bgColor = red'

 

doesn't work so I assume it has to do with somehow referencing the parent page from the s-control.

 

I know the 'best practice' approach would be to re-create the entire page with apex but we don't have time for that just to make this simple change.

 

Any help would be much appreciated!