![]() |
|
|
+ Search |
![]()
|
Aug 9th, 2000 02:37
Rey Nuņez, Frank Prendergast, http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onbeforeprint.asp
IE5+ includes support for onbeforeprint and onafterprint events, which give Web authors an opportunity to modify the document just before and after an HTML document is printed. Here is an example from the MSDN workshop that does exactly that. It demonstrates how the onbeforeprint event can be used to make all currently hidden sections of the page visible just before the page prints. The onafterprint event is then processed after the page prints, to revert the document back to its original state. http://msdn.microsoft.com/workshop/author/dhtml/reference/events/onbefor eprint.asp