Web Development

Automatic Pagination of HTML Documents in a Web Browser

Free registration required

Executive Summary

A typical HTML document that is viewed in a web browser usually requires some form of scrolling actions from the user in order to view the whole document. This paper presents an application for the automatic pagination of an HTML document in a web browser, based on the dimensions of the browser window. The application does not involve any server-side or proxy technologies or any additional plug-in or code beyond the JavaScript and XSLT support in the browser. It is based on a two-stage process - decoration of the HTML Document Object Model (DOM) with its coordinates and sizes using a library of JavaScript functions and pagination of the HTML DOM using a transform via the browser built-in XSLT 1.0 processing engine.

  • Format: PDF
  • Size: 780.7 KB