Click to return to the Reusing Browser Technology home page    
IHTMLBodyElement::get_vLi...     IHTMLBodyElement2::get_on...     Interfaces and Scripting ...    
Web Workshop  |  Reusing Browser Technology

IHTMLBodyElement2 Interface


This interface provides additional access to the BODY element.

IHTMLBodyElement2 Methods

get_onafterprint Retrieves a pointer to the event handler function associated with the onafterprint event on the BODY element.
get_onbeforeprint Retrieves a pointer to the event handler function associated with the onbeforeprint event on the BODY element.
put_onafterprint Sets a pointer to the event handler function associated with the onafterprint event on the BODY element.
put_onbeforeprint Sets a pointer to the event handler function associated with the onbeforeprint event on the BODY element.

Interface Information

Implementation System (Mshtml.dll)
Inherits from IDispatch
Header and IDL files Mshtml.h, Mshtml.idl
Minimum availability Internet Explorer 5
Minimum operating systems Windows 95, Windows NT 4.0

Remarks

The methods that act on the IHTMLBodyElement2 interface, such as onbeforeprint and onafterprint event scripts, allow control of the BODY element's behavior and characteristics.



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.