Dynadot

Javascript - Print Page Button

NameSilo
Watch
Impact
0
**
This code will place a button on the page, and will allow the client/user to print the current page
**


<html>

<head>
<script type="text/javascript">
function printpage()
{
window.print()
}
</script>

</head>
<body>

<form>
<input type="button" value="Print this page" onclick="printpage()">
</form>

</body>
</html>
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back