Click here to Skip to main content
15,895,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear sir,

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

//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
Comments
Sergey Alexandrovich Kryukov 2-Aug-14 1:44am    
Footers are pretty much the browser's feature. Well, good or bad, but this is so... Think about @page CSS rules...
—SA

1 solution

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

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



 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900