2009년 7월 10일 금요일

페이지별 화면 출력

적은 내용을 여러 페이지에 하고싶을 때가 있다.

<html>
<head>
<title>Sample Printing</title>
<style>P.page{page-break-after: always}</style>
</head>
<body>
<p class=page>
this is a page printing sample.after the end of 
this p tag printing will start from next page.
</p>
<p class=page>
See it will print the data from next page.
Here we will give a button using that button 
we will print this document.
<br>
<input type=button name=printit value='Print Me' onClick='print();'>
</p>
</body>
</html>

댓글 없음:

댓글 쓰기