Horje
change the body background color with javascript Code Example
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';
}
 
javascript change background color
document.body.style.backgroundColor = "yellow";
javascript change background color
function changeBackground(color) {
   document.body.style.background = color;
}

window.addEventListener("load",function() { changeBackground('red') });
change the body background color with javascript
function btn() {
        event.stopPropagation();
      }

      var button = document.getElementById("btn");
      button.addEventListener("click", function (e) {
        e.target.style.backgroundColor = "green";
      });
      button.addEventListener("focusout", function (e) {
        e.target.style.backgroundColor = "";
      });




Javascript

Related
namespace in javascript Code Example namespace in javascript Code Example
find a big length friend from array javascript finding longest string in array in javascript Code Example find a big length friend from array javascript finding longest string in array in javascript Code Example
installing ruby version using Rbenv Code Example installing ruby version using Rbenv Code Example
Node-Red Custom UI Code Example Node-Red Custom UI Code Example
only integer allowed javascript Code Example only integer allowed javascript Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8