0
Please how can someone write a code in JavaScript like when u click a button it will change the background image and color
2 Respostas
+ 4
<input type=“button“onclick="change()" >
function change()
{
bodystyle.style.background.color="color";//where bodystyle will be an id or class
}
Some mistake may be present here..
So
Refer this code for correct Syntax..
https://code.sololearn.com/WxVRIvTh2mve/?ref=app
try entering a key greater than 26
0
thanks