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/[email protected]/
>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/[email protected]/
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.