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 :: react to pdf 
Javascript :: javascript get response payload 
Javascript :: duplicate text javascript 
Javascript :: react native use route undefined 
Javascript :: JavaScript Destructuring - From ES6 
Javascript :: array from javascript 
Javascript :: words counter in javascript 
Javascript :: download file from api response 
Javascript :: javaScript get() Method 
Javascript :: label tag alternative in react native 
Javascript :: handling transaction in sequelize 
Javascript :: es6 foreach dom element 
Javascript :: mongoose node js 
Javascript :: js object to c# object 
Javascript :: how to update react app 
Javascript :: typescript compile string to js 
Javascript :: Serve the angular application 
Javascript :: svg auto size 
Javascript :: string javascript concatenation 
Javascript :: create random password 
Javascript :: mongoose find 
Javascript :: node.js console 
Javascript :: redux action creators 
Javascript :: error: Unknown dialect undefined 
Javascript :: how to add css based on route react 
Javascript :: frames[i] js 
Javascript :: full screen mode 
Javascript :: react portals 
Javascript :: react createelement 
Javascript :: js electron setup 
ADD CONTENT
Topic
Content
Source link
Name
7+8 =