JavaScript DHTML/Development/Print
Print a page
<html>
<head>
<script type="text/javascript">
function printpage(){
window.print()
}
</script>
</head>
<body>
<form>
<input type="button" value="Print this page" onclick="printpage()">
</form>
</body>
</html>
Printing Control
/*
JavaScript Bible, Fourth Edition
by Danny Goodman
John Wiley & Sons CopyRight 2001
*/
<HTML>
<HEAD>
<TITLE>Print()</TITLE>
</HEAD>
<BODY>
<FORM>
<INPUT TYPE="button" NAME="printWhole" VALUE="Print Entire Frameset" onClick="parent.print()"><P>
<INPUT TYPE="button" NAME="printFrame" VALUE="Print Bottom Frame Only" onClick="parent.display.print()"><P>
</FORM>
</BODY>
</HTML>