# onLoadDFrame

## Principle

It will be frequently necessary to start a function after a document is loaded.

It will be necessary, for example, to finish the presentation of a DFrame according to the document which it will contain: A same DFrame can contain a document or a form and thus will receive different buttons.

The onload event of the browsers is not usable for this purpose, not being synchronized with the functions of dFrameAPI. It will be replaced by the onLoadDFrame function that will be lauched when DFrameAPI finishes the construction of the DFrame and the loading of the document.

See onLoadDFrame in the reference documentation for more information.

Example

file: onLoadDFrame.html

Run the example

See the source code