![]() |
|
|
+ Search |
![]()
|
Jul 13th, 2000 21:57
unknown unknown, wd, Michael S. Comperchio
Well, if you're using IE4+ use the onBeforePrint Event to change the output declare this outside of the function: var OldPage = document.body.innerHTML; On the onBeforePrint Event: document.body.innerHTML = document.all.yourDiv.innerHTML; Then in the onAfterPrint Event: document.body.innerHTML = OldPage; You can have a button called PrintDiv that just does this for the div and doesn't interfere with the normal print options if you wish. -------------- There's also: <P ID="Paragraph" STYLE="page-break-before:always"> <P ID="Paragraph" STYLE="page-break-after:always">
© 1999-2004 Synop Pty Ltd