Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript style background color

 // change background color for specific id ..
function changebackground(){
	document.getElementById('id').style.backgroundColor = 'green' ; 
}
// change background color for whole body..
function changebackground(){
	document.body.style.backgroundColor = 'green';
}
 
 
PREVIOUS NEXT
Tagged: #javascript #style #background #color
ADD COMMENT
Topic
Name
9+6 =