Printing from a browser, with page breaks?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Printing from a browser, with page breaks?

Post by penguinboy »

I'm looking for a way to print webpages via the browser and have them formatted with page breaks.
User avatar
anjanesh
DevNet Resident
Posts: 1679
Joined: Sat Dec 06, 2003 9:52 pm
Location: Mumbai, India

Post by anjanesh »

Javascript : window.print(); will print the content of the browser window
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Re: Printing from a browser, with page breaks?

Post by penguinboy »

Formatted with page breaks?
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

I would use CSS to do so

heres a link thats pretty nice:

http://www.htmlgoodies.com/beyond/css_print.html
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Post by penguinboy »

Thanks tim.
Post Reply