Codesupplier.com

free html codes for your website

Print page button

This great code allows your users to print a page of your website in one click. The best place for this code is places like confirmation pages E.G. you want the users to print off a confirmation number for an order etc.

Want this cool code? Simply copy and paste the below html code into your websites editor.

<script language = "javascript">
function Toprint() {
Window.Print();
}
</script>
</head>
<body>
<input type = "button" onClick = "Toprint()"
value = "Print page">

 

< Go Back to Javascript Snippets