How to Add a Print Button to HTML Page example

Very Simple Example

Try This

<html>
<body>
<head>
<script>
function myFunction() {
    window.print();
}
</script>
</head>

<p>Click the Print the Page.</p>

<button onclick="myFunction()">Print this page</button>

</body>
</html>

No comments:

Post a Comment

AUTHOR