69

Chrome 70 brings Progressive Web Apps

It was only a couple of weeks ago that we were celebrating the arrival of Chrome 69. The tenth anniversary of the browser went down well initially but that reception soon soured when people realized they were being logged into all Google services without being notified. Now Chrome 70 is here and brings with it … Read more

jQuery(document).ready(function($) { // Add a class to all images that should trigger the print dialog $('.print-image').click(function() { // Create a new window with only the clicked image var printWindow = window.open('', '_blank'); var imageUrl = $(this).attr('src'); // Write the image to the new window printWindow.document.write('Print Image'); printWindow.document.close(); // Trigger the print dialog for the new window printWindow.print(); }); });