0

Please how can someone write a code in JavaScript like when u click a button it will change the background image and color

13th Sep 2018, 2:53 AM
umeokonkwo stanley
umeokonkwo stanley - avatar
2 Antworten
+ 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
13th Sep 2018, 4:50 AM
$hardul B
$hardul B - avatar
0
thanks
14th Sep 2018, 1:51 AM
umeokonkwo stanley
umeokonkwo stanley - avatar