Click here to Skip to main content
13,045,417 members (124,563 online)
Rate this:
Please Sign up or sign in to vote.
See more:
dear sir,

i have so many pages to print, and two diffrant footers.

//footer 1

footer1 footer1
footer1 footer1

//footer 2

footer2 footer2
footer2 footer2

I try to print footer 1 on all pages but only last page i want to print footer 2.
printing pages are dinamically genereted.
anybdy plz help....
Posted 1-Aug-14 19:43pm
Footers are pretty much the browser's feature. Well, good or bad, but this is so... Think about @page CSS rules...

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Why not give the <footer> an id, then use the DOM to replace the innerHTML for the object when you reach the last page.

for example, if your use

<script type="text/javascript">
 <footer id="xx">
  document.getElementById('xx').innerHTML = 'Hello From The New Footer!';


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 5 Aug 2014
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100