Provides additional access to the body element.
onafterprint Sets or retrieves a pointer to the event handler function that is called when the onafterprint event is raised. onbeforeprint Sets or retrieves a pointer to the event handler function that is called when the onbeforeprint event is fired.
The methods that act on the IHTMLBodyElement2 interface, such as onbeforeprint and onafterprint event scripts, enable you to control the behavior and characteristics of the body element.
Stock Implementation mshtml.dll Custom Implementation No 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, Windows CE 4.0