ASP Programming | ASP Web Pro
  Active Server Pages Programming by ASP Web Pro

JavaScripts

PAGE BREAK

It is often necessary to insert page breaks into your web pages so that users can print your information without data or images running off of one page to another. Using this simple JavaScript, "Page data 1" will print on page 1 and "Page data 2" will print on page 2.

<HTML><HEAD>
<TITLE>ASP Web Pro</TITLE>
<style>div.break {page-break-before:always}</style>
</HEAD>

<BODY>
Page data 1

<div class="break"/>

Page data 2

</BODY>
</HTML>

< Back to JavaScripts


 

 

Main Menu
Home
ASP Scripts
ASP Tutorials
JavaScripts
Awards
Contact Us

Email This Page

Other Resources
ASP Web Hosting
Search Engine Submission
Programming Help

 

 

 

Other ASP Web Sites

Site Map

 

Last Updated:
16 March 2010