0

$(document).ready(function($) {
$('button.print').click(function(e) {
window.print();
 });
});
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<html>
<head>
</head>
<body>
<button class="print">Print this page</button>
</body>
</html>

How can I print with this code, for both android and iOS. Is there any solution in JavaScript and/or JQuery ?

Abhishek Oza
  • 3,340
  • 1
  • 27
  • 35

1 Answers1

0

You can use GCP (Google Cloud Print)

https://developers.google.com/cloud-print/docs/gadget

Sourabh Somani
  • 2,138
  • 1
  • 13
  • 27