Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Learn More

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

Making an html site linked to a .js file containing the following code (DOM)does not apply user input color to page in Firefox but does in Edge

more options

Making an html site linked to a .js file containing the following js code does not apply user input color to page in Firefox but does in Edge:

  var useColor = prompt("What is your favorite color?");
  document.bgColor = useColor;

note: the prompt appears and accepts input. After input the document.bgColor DOM function does not work in colorizing the background

Making an html site linked to a .js file containing the following js code does not apply user input color to page in Firefox but does in Edge: var useColor = prompt("What is your favorite color?"); document.bgColor = useColor; note: the prompt appears and accepts input. After input the document.bgColor DOM function does not work in colorizing the background

Alle antwurden (1)

more options

That property is non-standard. See: https://developer.mozilla.org/docs/Web/API/Document/bgColor

Tried this?

  var useColor = prompt("What is your favorite color?");
  document.body.style.backgroundColor = useColor;