gaptrast
Member
- Messages
- 123
- Reaction score
- 0
- Points
- 16
Hello,
How can I change background color with JavaScript?
like this:
heres the head code
It will not work,, please help.
How can I change background color with JavaScript?
like this:
Code:
<div onclick="change(green)">change bakcground color</div>
Code:
function change(){
document.getElementById('uptd2').style.backgroundColor=();
}