How to Change Background Color Using JavaScript

How to Change Background Color Using JavaScript

In the below given example, we are changing background color of DIV tag by using its ID on click of a button.

 

  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •