...

View Full Version : Printer Escape Code for Eject



atortega
05-23-2005, 09:42 AM
Hi,

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?

_Aerospace_Eng_
05-23-2005, 10: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.

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

atortega
05-23-2005, 11:58 AM
Thanks. It really helps.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum