Script Categories

Page Details >>> Window Print.

Quickly and easily print the current page by clicking on a link. Add this function to a submit button to automatically print a submitted form!

Print This Page

Add the below code to the <body> section of your page:

<script language="javascript" type="text/javascript">      
/* Visit for full source code
and get more free JavaScript, CSS and DHTML scripts! */
<!-- Begin
function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
//  End -->
<a href="javascript:printWindow()">Print This Page</a>

JavaScript Editor Get Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.

Code was highlighted by 1st JavaScript Editor (The Best JavaScript Editor!).