An event handler that fires when a frame or window completes loading of the HTML document.

Once the event fires, the handler is released and cleared.

This event is useful to ensure that a frame has loaded fully before attempting to print its content.


v = factory.OnDocumentComplete(frameOrWindow,callback)

Parameter Description
frameOrWindow (object) frame or window loading the content.
callback (object) reference to the javascript function to call when the document is complete.


If there is a frame with an id of “report”: