get color from image for backgroud color dynamically in js code example Example: set background color dynamically javascript document.body.style.backgroundColor="white"