0

How can i fix this code, that the background color will change to the inouted color

how can i make that the backgroundcolor changes to the var x? function myfun() { var x = alert=prompt("Type in the color you want for the background ;D"); document.getElementById("html").style.backgroundColor= (x); }

23rd Jun 2017, 10:54 PM
TrueJu
TrueJu - avatar
2 ответов
23rd Jun 2017, 11:04 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 1
Thank you it works great
23rd Jun 2017, 11:11 PM
TrueJu
TrueJu - avatar