I am trying to create a script that would allow person to print off image. I am having trouble in that it doesn't matter what option they choose (Onclick), the image appears in the window and I do not know how to get around that. I know it is due to the anchor tag being executed.
Thanks for any help!
Susan
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD>
<BODY>
<SCRIPT language=JavaScript>
<!-- Hide from Old Browsers
// End hiding script from old browsers -->
function confirm_entry()
{
onClick = temp = window.confirm("Click OK to Print Application");
if (temp==true){
function myprint(){
window.focus();
window.print()
}
}
else
{
// Output when Cancel is clicked
}
}
confirm_entry()
-->
</SCRIPT>
<A href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:window.print()"><IMG src="PrtApp_files/GF1.gif"
</A></BODY></HTML>
Thanks for any help!
Susan
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2800.1141" name=GENERATOR></HEAD>
<BODY>
<SCRIPT language=JavaScript>
<!-- Hide from Old Browsers
// End hiding script from old browsers -->
function confirm_entry()
{
onClick = temp = window.confirm("Click OK to Print Application");
if (temp==true){
function myprint(){
window.focus();
window.print()
}
}
else
{
// Output when Cancel is clicked
}
}
confirm_entry()
-->
</SCRIPT>
<A href=http://www.webdeveloper.com/forum/archive/index.php/"javascript:window.print()"><IMG src="PrtApp_files/GF1.gif"
</A></BODY></HTML>