onlayoutcomplete Event
Fires when the print or print preview layout process finishes filling the current LayoutRect object with content from the source document.
Syntax
Inline HTML <ELEMENT onlayoutcomplete = "handler(event);" > Event Property object.onlayoutcomplete = handler; attachEvent object.attachEvent( "onlayoutcomplete", handler); Named script < SCRIPT FOR
= objectEVENT
= onlayoutcomplete>
Event Information
Bubbles Yes Cancels Yes To invoke Select the print or print preview option from the file menu of an application hosting MSHTML. Default action Executes the script associated with this event.
Event Object Properties
Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query the event object for the following event properties.
Available Properties
altKey Gets a value that indicates the state of the ALT key. altLeft Gets a value that indicates the state of the left ALT key. contentOverflow Retrieves a value that indicates whether the document contains additional content after processing the current LayoutRect object. ctrlLeft Sets or retrieves the state of the left CTRL key. shiftLeft Retrieves the state of the left SHIFT key. srcElement Gets or sets the object that fired the event. Refer to the specific event object for additional event properties.
Remarks
If the contentOverflow property on the event object is
true
when this event fires, the event handler should set the nextRect property in order to indicate the next LayoutRect to fill with the source document content.
Standards Information
There is no public standard that applies to this event.
Applies To
A, ABBR, ACRONYM, ADDRESS, APPLET, AREA, B, BASE, BASEFONT, BDO, BGSOUND, BIG, BLOCKQUOTE, BODY, BR, BUTTON, CAPTION, CENTER, CITE, CODE, COL, COLGROUP, COMMENT, CUSTOM, DD, DEL, DFN, DIR, DIV, DL, DT, EM, EMBED, FIELDSET, FONT, FORM, FRAME, FRAMESET, HEAD, hn, HR, HTML, I, IFRAME, IMG, INPUT type=button, INPUT type=checkbox, INPUT type=file, INPUT type=hidden, INPUT type=image, INPUT type=password, INPUT type=radio, INPUT type=reset, INPUT type=submit, INPUT type=text, INS, ISINDEX, KBD, LABEL, LEGEND, LI, LINK, LISTING, MAP, MARQUEE, MENU, nextID, NOBR, NOFRAMES, NOSCRIPT, OBJECT, OL, OPTION, P, PLAINTEXT, PRE, Q, RT, RUBY, S, SAMP, SCRIPT, SELECT, SMALL, SPAN, STRIKE, STRONG, SUB, SUP, TABLE, TBODY, TD, TEXTAREA, TFOOT, TH, THEAD, TITLE, TR, TT, U, UL, VAR, WBR, XML, XMP, Element Constructor