05 August 2019

How to create print button function?


<html>
<body>

<p>Click the this button for printing</p>

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

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

</body>
</html>



                  or



<button onClick="window.print()">Print this page</button>




No comments:

Post a Comment

How to create video slider with cuncks of videos without download all videos?

 Create video slider with cuncks of videos without download all videos function custom_video_slider_shortcode() { $slider_id = 'vide...