Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to change the background color of html in javascript

document.querySelector('html').style.backgroundColor = 'red';
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #change #background #color #html #javascript
ADD COMMENT
Topic
Name
5+6 =