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.