vendredi 8 novembre 2019

Why this code is not displayed correctly? [on hold]

I wrote the following code, but in both cases the message displayed was the same. What is the problem?

If (document.bgColor="#ffffff"){alert ("white")}; else { alert (" black ") }

When I set the hexadecimal background color code to

000000, this alert was still white.Whereas the warning should be equal to black.

Aucun commentaire:

Enregistrer un commentaire