Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
onafterprint
Collapse the table of content
Expand the table of content

onafterprint property

Sets or retrieves a pointer to the event handler function that is called when the HTMLWindowEvents::onafterprint event is raised.

Syntax

HRESULT value = object.put_onafterprint(VARIANT v);HRESULT value = object.get_onafterprint(VARIANT* p);

Property values

Type: VARIANT

the IDispatch interface of an object with a default method that is invoked when the event occurs.

Remarks

This property provides a way to specify a function that can change a document's markup after taking a snapshot for printing. You may want to undo markups to a document that were made for printing such as re-expanding collapsed lists or making hidden elements.

See also

Reference
HTMLWindowEvents::onafterprint
HTMLWindowEvents::onbeforeprint
IHTMLBodyElement2::onbeforeprint
IHTMLDocument3::attachEvent
IHTMLDocument3::attachEvent

 

 

Community Additions

ADD
Show:
© 2015 Microsoft