javascript change 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';
}
var element = document.body;
element.style.backgroundColor = "blue";document.body.style.backgroundColor = "yellow";function changeBackground(color) {
document.body.style.background = color;
}
window.addEventListener("load",function() { changeBackground('red') });
Also in JavaScript:
- heap sort
- Javascript get random item from array
- js generate list of names with forloop
- jquery preventdefault
- angular material checkbox
- move an element into another jquery
- stop a video jquery
- javascrip reverse text
- chart.js npm install
- largest and smallest number in an array 1-100 javascript
- js class static
- export multiple functions react
- react native shadow android
- js-cookie
- build apk react native
- how to make a rectangle in javascript
- Iterate with JavaScript For Loops
- setAttribute()
- render image url in react native
- get the current url javascript
- Discord bot client login
- Convert Characters into String Array in JavaScript
- loop javascript
- add style javascript