DFrameAPI: setBackgroundColor

Set a background color to the browser

Syntax

DFrameAPI.setBackgroundColor(color)

Parameter

color

In hexa RGB code or browser compatible code.

Usage

This method allow to set a background color to the browser. This color is only useful if the first DFrame does not recover all the surface of the browser (position different from [0, 0, 100, 100]).

If the setBackgroundColor method has not been used when the first DFrame loads the background color will automatically be set as the same as the background color of this first DFrame.