window.print();

Y

yaniv madar

Hi
I need to print a long HTML page and the papar cut at the middle of the
page and some of the data lost :-(.

I print with JavaScript command "window.print()".
Is there any option to control or to split the page that will fit for
A4 page
size and not cut it.


10X,
yaniv madar.
(e-mail address removed); (e-mail address removed)
 
E

Evertjan.

yaniv madar wrote on 15 feb 2004 in comp.lang.javascript:
I need to print a long HTML page and the papar cut at the middle of the
page and some of the data lost :-(.

I print with JavaScript command "window.print()".
Is there any option to control or to split the page that will fit for
A4 page
size and not cut it.

<STYLE MEDIA="print">
p { page-break-before: always }
</STYLE>


<http://www.blooberry.com/indexdot/css/properties/print/pbbefore.htm>
 
M

Michael Winter

I need to print a long HTML page and the papar cut at the middle of the
page and some of the data lost :-(.

I print with JavaScript command "window.print()".
Is there any option to control or to split the page that will fit for
A4 page size and not cut it.

Odd. I'm sure that I've seen this question before... Oh yes, you already
asked it, and I gave you an answer.

In future, if the solution offered doesn't appear to be sufficient, post
a follow-up, not a new topic. However, as Evertjan has given you an
answer along the lines of my own, I think you'll find my advice was
correct.

Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top