phototaker
Technical User
I want to place a button on a page and when it is clicked a picture on that page is printed without anything else on that page being printed. Any help would be apperciated. Thanks Richard ![[poke] [poke] [poke]](/data/assets/smilies/poke.gif)
![[poke] [poke] [poke]](/data/assets/smilies/poke.gif)
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<HTML>
<FRAMESET ROWS='100%,0%' COLS='100%'>
<FRAME SRC='myPage.html'>
<FRAME SRC='' NAME=INVISIBLE_FRAME>
</FRAMESET>
</HTML>
<HTML>
<HEAD>
<SCRIPT>
function printPic(pic)
{
frameForPic = parent.INVISIBLE_FRAME.document;
frameForPic.open('text/html','replace');
frameForPic.write("<HTML><BODY onLoad='window.print()'><IMG SRC='"+pic+"'></BODY></HTML>");
frameForPic.close();
}
</SCRIPT>
</HEAD>
<BODY>
<H1>LOOK AT MY PIC!</H1>
<IMG SRC='testPic.jpg' ONCLICK=printPic(this.SRC)>
</BODY>
</HTML>
frameForPic.write("<HTML><BODY onLoad='this.focus();window.print()'><IMG SRC='"+pic+"'></BODY></HTML>");