Print image link
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 - 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);
});
Developer | Michael Stursberg |
Username | thesturs |
Uploaded | October 27, 2022 |
Rating | 3 |
Size | 1,914 Kb |
Views | 8,096 |
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!
Name | Size |
Get url info and break up into classes then add to body class | 1,651 Kb |
Hide WP admin bar | 1,447 Kb |
A Pen by Michael Stursberg | 4,988 Kb |
Basecamp | 1,724 Kb |
Key Detection | 1,530 Kb |
Automatically Generate a Google Address Link or Map | 2,069 Kb |
Slim Grid SASS SCSS v3.2 | 4,709 Kb |
GetViewport4CSS | 1,333 Kb |
Slick Slider img or vid autoplay | 2,496 Kb |
Auto canonical links | 1,412 Kb |
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!
Name | Username | Size |
03 - CSS Variables | Run-time | 2,682 Kb |
Material Design-Layout-Principles Practice | Fraina | 2,331 Kb |
Tile Animation Thing | Frxnz | 4,332 Kb |
TestTube CSS | EZPK | 2,710 Kb |
Algorithm practice | Abensur | 5,620 Kb |
Magnus 3 | ARocketfish | 7,944 Kb |
Clock Face Idea | Chrisburnell | 3,196 Kb |
Pagepilling.js | Blossk | 6,554 Kb |
Shop Talk logo made in CSS | Hugo | 19,368 Kb |
JavaScript constructors | Simboonlong | 2,415 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!