faqts : Computers : Programming : Languages : JavaScript : DHTML

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

16 of 19 people (84%) answered Yes
Recently 7 of 9 people (78%) answered Yes

Entry

Is it possible to print a dhtml collapsible list when it is expanded?

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