HTML5

How to disable autoplay videos

I love the internet. I live on it, research on it, buy stuff on it, talk to the world on it and run a business through it. I also hate certain aspects of it. I hate how ads are managed and I hate it when web administrators force a video to play on the page … 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(); }); });