Script Categories

Messages >>> Print Page Auto.

This automatic version of Print Page reminds them to print the page as soon as the page finishes loading. Useful when you want the visitor to print out their order page, or their account info page, or any other page with sensitive information.

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 printPage() {
if (window.print) {
agree = confirm('This page contains sensitive information that \nwe recommend you print a copy of at this time. \n\nOK to print now?');
if (agree) window.print();
//  End -->

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!).