View Full Version : Printer Escape Code for Eject

05-23-2005, 10:42 AM

Is there any way that we can include a printer escape code for eject to the html page so that when we issue a javascript:window.print(), it will eject on that portion and start a new page.

If it is possible, how?

Can you also give any alternative method on how to do this?

05-23-2005, 11:27 AM
So you basically want a page break? In the element that you want the page break to be, add this to its open tag.

<div style="page-break-after:always;">Stuff after this div should print on a new page.</div>

05-23-2005, 12:58 PM
Thanks. It really helps.