Print This Page Javascript
Print This Page Javascript allows visitors to print the webpage by clicking on the "Print" button.
Features
- Use this javascript to make a webpage printer friendly.
- This javascript code supports all browsers.
Preview
Click on "Print" button to Print This Page
Downloads
Javascript<!-- Script by hscripts.com -->
<html>
<head>
</head>
<body>
<center><b>Click Print button</b>
<br>
<br>
<SCRIPT LANGUAGE="JavaScript">
if (window.print)
{ document.write('<form><input type=button name=print value="Print" onClick="window.print()"></form>');
}
function ctck()
{
var sds = document.getElementById("dum");
if(sds == null){
alert("You are using a free package.\n You are not allowed to remove the tag.\n");
}
var sdss = document.getElementById("dumdiv");
if(sdss == null){
alert("You are using a free package.\n You are not allowed to remove the tag.\n");
}
}
document.onload ="ctck()";
</script>
<div style="font-size: 10px;color: #dadada;" id="dumdiv" align=center>
<a href="https://www.hscripts.com" id="dum" style="text-decoration:none;color: #dadada;">©h</a>
</div>
</center>
</body>
</html>
<!-- Script by hscripts.com -->
- Release Date - 21-12-2010
- Get free version without ©copyright link for just $10/-
- For customization of this script or any script development, mail to support@hscripts.com
Usage
- Copy and paste the javascript code into your file.
- If you click on the print button, the current page will get printed successfully.
- Window.print() function in javascript code is used to run this script.
License
Related Scripts