I am trying to create a simple click to print a link for an image, and what I would like to do is when I click the link, a new window with the image will open, and the browser will open the print box dialog box.
My question is, is this possible only from the URL parameter or from the anchor element on the start page? Or do I need to create a landing page using javascript?
Here is an example of what I have:
<p class="click-2-print"> <a href="/img/map.jpg" target="_blank">Click here to print the map above</a> </p>
Obviously, the above code will open the image in a new window, but for this the user will need to press Ctrl + P, Cmd + P or use the browser commands. My client wants the image to “just print” when the user clicks on the link, so I'm trying to find the easiest way to accomplish this.
So, are there any parameters or attributes that I can add to the above markup to accomplish what I described?
source share