Print image link

Size
1,914 Kb
Views
8,096

How do I make an print image link?

What is a print image link? How do you make a print image link? This script and codes were developed by Michael Stursberg on 27 October 2022, Thursday.

Print image link Previews

Print image link - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>print image link</title>
</head>
<body> <img class="alignnone wp-image-284 printthis" src="/wp-content/uploads/sites/19/2016/10/Slide1.png" alt="slide1" width="750" height="563" srcset="http://imh.activewebgroup.net/wp-content/uploads/sites/19/2016/10/Slide1.png 960w, http://imh.activewebgroup.net/wp-content/uploads/sites/19/2016/10/Slide1-300x225.png 300w, http://imh.activewebgroup.net/wp-content/uploads/sites/19/2016/10/Slide1-768x576.png 768w" sizes="(max-width: 750px) 100vw, 750px">
<a class="printthislink" href="http://imh.activewebgroup.net/wp-content/uploads/sites/19/2016/10/Slide1.png" >Click to Print Coupon</a> <script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.0/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Print image link - Script Codes JS Codes

function SourcetoPrint(source) {	return "<html><head><script>function step1(){\n" +	"setTimeout('step2()', 10);}\n" +	"function step2(){window.print();window.close()}\n" +	"</scri" + "pt></head><body onload='step1()'>\n" +	"<img style='width: inherit;' src='" + source + "' /></body></html>";	}	function Print(source) {	Pagelink = "about:blank";	var pwa = window.open(Pagelink, "_new");	pwa.document.open();	pwa.document.write(SourcetoPrint(source));	pwa.document.close();	}
$( ".printthislink" ).attr('target','_blank');
$( ".printthislink" ).click(function() {
var printimg = $(this).attr('href');
Print(printimg); console.log(printimg);
});
Print image link - Script Codes
Print image link - Script Codes
Home Page Home
Developer Michael Stursberg
Username thesturs
Uploaded October 27, 2022
Rating 3
Size 1,914 Kb
Views 8,096
Do you need developer help for Print image link?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Michael Stursberg (thesturs) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!