/    Sign up×
Community /Pin to ProfileBookmark

Printing pages

I don’t know if this is a Javascript or HTML issue. But her goes. I have a cgi(perl) script that is pushing out 3 pages. I use a javascript for the user to click on to print the screen with the 3 pages. How can I get the 3 pages to each start at the top of a page. I am printing to an HP Laser Jet. :rolleyes:

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@phpnoviceMar 13.2006 — I don't know if this is a Javascript or HTML issue. [/QUOTE]
Neither... It's a CSS issue. ?

<H1 style="page-break-before:always;">...heading...</h1>
Copy linkTweet thisAlerts:
@wg174020authorMar 14.2006 — Thanks, PHPNOVICE. It does exactly what I want it to do.
Copy linkTweet thisAlerts:
@phpnoviceMar 14.2006 — I've been interested to find out if this works cross-browser (as I've never had a use for it, myself). In what browser(s) and version(s) did you test it?
Copy linkTweet thisAlerts:
@wg174020authorMar 14.2006 — I tried it on IE 6, Netscape 7.2, and FireFox

It works well on all of them
Copy linkTweet thisAlerts:
@wg174020authorMar 14.2006 — I need to correct my previous reply. After further testing, one of my associates told me that we were just lucky with netscape and FireFox. I tried it on another page that was differrent and he was correct. It did not work. However, it does appear to be working with IE.
Copy linkTweet thisAlerts:
@phpnoviceMar 14.2006 — Yep, I was afraid if that. You'll need to find the equivalent CSS for Mozilla. At least you;ve got something on which to start your research, eh? ?
×

Success!

Help @wg174020 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...