# Creation of a DFrame:

Once the DFrame object is instantiated it is possible to create it. 3 methods allow that:

- The setURL(url) method inserts a HTML page in the DFrame
- The alert and addAlert methods shows the DFrame and send it a text.
- The show method only shows the DFrame.

Example:

//Instantiation

var position = [ 0, 0, 100, 100 ];
var title = 'Home page';
var dFrameStyle = new dFrameStyle();
dFrameStyle.setBackgroundColor(' blue')
var dFrame = new DFrame(position, title, dFrameStyle);

//Decoration
dFrame.addButton('Close', 'thisDFrame.closeFrame()')

//Creation

dFrame.show()

When a DFrame is created it is no longer possible to decorate it.