0

Hello i wrote some js codes on my laptop about a button that changes backgroundColor it works on mylaptop but noton phone pls y

The functions i write with js works well on my laptop but refused to work with my phone .😟

4th Feb 2022, 5:52 PM
Okere Samuel
Okere Samuel - avatar
3 Réponses
+ 1
Ok thanks it on color buttons i was working on recently
4th Feb 2022, 6:05 PM
Okere Samuel
Okere Samuel - avatar
0
Could you share your code so we can help you?
4th Feb 2022, 5:57 PM
CGM
CGM - avatar
0
const btn= document.querySelector(".btn"); btn.onclick = changeBackgroud; function changeBackground(){ document.querySelector("body").style.backgroundColor = "royalblue"; }
4th Feb 2022, 6:02 PM
Jasy Fabiano
Jasy Fabiano - avatar