Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ascii codes

Status
Not open for further replies.

osbel

Programmer
Sep 17, 2001
26
US
I need to insert ascii code 012 into my page (makes page break for printer (?)). How do i put that into my page? I have tried a document.write('\012'); but that doesn't appear to work. Any ideas? thanks.
Leslie
 
Hi osbel,

You should use CSS2 properties [tt]page-break-before[/tt] and [tt]page-break-after[/tt] to do this. For example:

<STYLE>
H3.breakpage { page-break-before: always }
</STYLE>

this means that a new page will start printing before the H3 header if [tt]breakpage[/tt] class will be appied to it.

good luck
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top