Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

how to set background colour i js inline stylel

<!DOCTYPE html>
<html>
   <head>
      <title>HTML Backgorund Color</title>
   </head>
   <body style="background-color:grey;">
      <h1>Products</h1>
      <p>We have developed more than 10 products till now.</p>
   </body>
</html>
Comment

inline style to change background color javascript

// Change the background color to red
document.body.style.backgroundColor = "red"; 
Comment

PREVIOUS NEXT
Code Example
Javascript :: javascript extract number from string 
Javascript :: comments in json 
Javascript :: angular filter ngfor 
Javascript :: how to get seconds in timstamps js 
Javascript :: viewchild for ngfor 
Javascript :: contains is not a function javascript 
Javascript :: type of javascript 
Javascript :: wait for ajax to finish 
Javascript :: convert node.js to ES6 
Javascript :: call javascript function use array 
Javascript :: javascript change paragraph text 
Javascript :: Deep copy objects js JSON methods 
Javascript :: check if string contains substring javascript 
Javascript :: redux devtools extention in redux toolkit 
Javascript :: bootstrap modal clear all fields 
Javascript :: javascript tolocaletimestring 
Javascript :: unshift 
Javascript :: jquery select2 how to make dont close after select 
Javascript :: javascript random numbers 
Javascript :: chartjs line color 
Javascript :: get closest element id jquery 
Javascript :: add scss in next js 
Javascript :: electron jquery 
Javascript :: xmlhttprequest error handling 
Javascript :: react yup password with number string and uppercase 
Javascript :: json api testing 
Javascript :: vuejs get the url params withour router 
Javascript :: express how to refresh 
Javascript :: iiee javascript 
Javascript :: insert new object values 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =