dojo.addOnLoad
<script src="../../js/dojo.js"></script>
defined in dojo/_base/_loader/loader.js
Registers a function to be triggered after the DOM has finished loading and widgets declared in markup have been instantiated. Images and CSS files may or may not have finished downloading when the specified function is called. (Note that widgets' CSS and HTML code is guaranteed to be downloaded before said widgets are instantiated.)
Usage
function (/*Object?*/ obj) (view source)
parameter | type | description |
---|---|---|
obj | Object | Optional. |
Examples
Example 1
dojo.addOnLoad(functionPointer);
dojo.addOnLoad(object, "functionName");
dojo.addOnLoad(object, function(){ /* ... */});