In an HTML document built up by a template engine, I have a table of accounting data -- a variable number of lines, with a "grand total" at the bottom. Sometimes this table spills over onto another page. When it does so, it's not obvious to the user that there's more data on another page, unless he's looking for the total and can't find it.
So, I put the grand total line in a TFOOT
, so it would be printed on each page. Even if the user misses some of the line items, he can see the total right on the first page of the report.
What I'd like to do instead of printing the total is to print something like "(continued on next page)" at the bottom of the first page (where the TFOOT
is dynamically inserted by the browser) and have the grand-total line print only on the last page that the table spans.
Is it possible to use HTML, CSS, or Javascript, to insert a "(continued...)" message at the end of every page that a multi-page table spans?