Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: just print data from an element


Message #1 by "Debra Copeland" <djcopeland@p...> on Fri, 16 Mar 2001 14:04:26
You could open a new window and write its contents with everything you need
(taken from the original html content if you wish).
The new window should include <body onload="window.print();">.
The new window must be closed manually after print.
It takes some coding to select the proper parts from the original window and
write them to the new window. See also the properties innerHTML and
outerHTML in the documentation.

Is this what you mean?

Regards,
Kees





  Return to Index