how to change background color using js
document.body.style.backgroundColor = "yellow";function changeBackground(color) {
document.body.style.background = color;
}
window.addEventListener("load",function() { changeBackground('red') });var warning = document.getElementById("warning");
warning.style.background-color = "red";
Also in JavaScript:
- what are the uses of babel js
- how to add multiple comment in react
- npm check updates
- jquery textarea autosize
- if window width jquery then display a div at scroll
- javascript filter array of objects
- javascript join 2 variables into string
- javascript add value to input
- Material-ui wheelchair icon
- wait until page loads selenium javascript
- how to empty table after closing modal using jquery
- make internal value in render function in react native
- if statements javascript
- add object to array react hook
- javascript date to utc format
- jquery timer
- line chart using json django
- npm font awesome 5
- jquery set hidden field value
- round off value in javascript
- capitalise first letter js
- react native map repeate
- javascript flat object
- ng2 validations angular using reactiveforms