Yes. This works, but the only problem is that the button also appears on
the printout. I did not want this, that is why I wanted to print via
confirm message. If this is the only way then so be it.
Frank Priest wrote:
>
> Here's a sample print button......
>
> <SCRIPT LANGUAGE="JavaScript">
> <!-- Begin
> if (window.print) {
> document.write('<form>'
> + '<input type=button name=print value="Click to Print This Page" '
> + 'onClick="javascript:window.print()"></form>');
> }
> // End -->
> </script>
>
> At 10:09 AM 8/11/2000 -0400, you wrote:
> >I have found that even with a simple script below causes the user to be
> >prompted twice with "alert box" for printing with the first doing
> >nothing. Is there anyway to avoid this problem and just have the user
> >prompted the one time (granted they will still be prompted by the print
> >function from the browser which is what I am not trying to avoid). Does
> >that make sense?
> >
> >
> ><SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
> ><!--
> > confirm("Print it?")
> > window.print()
> >//-->
> ></SCRIPT>
> >------------------------------------------------------------------------------
> >Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> >To Unsubscribe visit
> >http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
> >send a message to [EMAIL PROTECTED] with 'unsubscribe' in
> >the body.
>
> ------------------------------------------------------------------------------
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
>http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
>message to [EMAIL PROTECTED] with 'unsubscribe' in the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.