Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing Header in Javascipt

Status
Not open for further replies.

craizie

IS-IT--Management
Oct 30, 2002
15
US
I was looking for some help regarding printing a header and footer using the javascript function to print. For example, let's say i want the following first row of the table to appear on every page that is printed using the javascript print function.

<tr>
<td>Orignal Owner</td>
<td>Vehicle ID</td>
<td>Year</td>
<td>Make</td>
<td>Model</td>
</tr>

Is there a way to tell javascript to print that table row for every page it prints.

Thanks.
 
<table border=0 cellpadding=03 width=90%>
<thead style=&quot;display:table-header-group;&quot;>
<tr>
<th align=left>Orignal Owner</th>
<th align=left>Vehicle ID</th>
<th align=left>Year</th>
<th>Make</th>
<th>Model</th>
</tr>
</thead>
<tr><td>data</td></tr>
</table>
 
Thanks a lot Tracey, that got the job done.
You wouldn't happen to know how to make the java script print function to print the page numbers for each page it prints?

Thanks again,
 
oh no, sorry, not a JS programmer.. I only found the above answer a couple of weeks ago.. here in fact.

but am interested when u find out
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top