Some javascript executed when triggered but not others

Hi all,

I added the following code to a javascript trigger to get some familiarity with basics but when I publish and view the html5 output I get the alert but the background color of anything isn't changed. 

What obvious thing am I missing ?

var player = GetPlayer();
document.bgColor = "#009900";
alert("Javascript Executed");
1 Reply
Christie Pollick

Hi, Michael -- Thanks so much for reaching out! Unfortunately, we are not able to assist with JS coding support, but in case you'd like to have it handy, here is our JavaScript Best Practices and Examples sheet. Hopefully one of the JS gurus in the community can take a look and identify where the issue is taking place. :)