Thread: Print This Page
View Single Post
  #1  
Old 12-17-2007, 11:28 PM
aussiebaz aussiebaz is offline
First Lieutenant
 
Join Date: Jan 2007
Location: Newcastle , Australia
Posts: 161
Send a message via MSN to aussiebaz Send a message via Skype™ to aussiebaz
Default Print This Page

Hi everyone
Firstly I hope everyone has a very happy and
safe christmas and a fantastic 2008

Here is a code for a "Print This Page" Button
Simply insert into page where you want the button
to appear:

<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
</head>
<body>
<form>
<p>
<input type="button" value=" Print this page "
onclick="window.print();return false;" />

<input type="button" value="Close Window" onClick="window.close()">
</form>
Reply With Quote