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)
|frameOrWindow||(object) frame or window loading the content.|
If there is a frame with an id of “report”: