> Brilliant idea, Allen. The JavaScript is:
>         Window.print()
>     which "prints the current document, exactly as if the user had clicked
the browser's Print button." It's available in Client-side Navigator 4,
according to my reference book (Rhino). That should work in MSIE 5 as well,
fingers crossed.
>
> I'll have a play with this and see if it works out well, later this
afternoon.

[
REBOL [
 Title: "Auto printing via Browser."
 File: %"HTML Print.r"
 Author: "Andrew Martin"
 eMail: [EMAIL PROTECTED]
 ]

File: %PrintMe.html

write File {
 <HTML>
 <HEAD>
 <TITLE>Auto printing HTML file</TITLE>
 </HEAD>
 <BODY>
 <H1>Auto printing HTML file</H1>
 With the help of a little JavaScript...
 <SCRIPT LANGUAGE="JavaScript">
 self.print();
 </SCRIPT>
 in here.
 </BODY>
 </HTML>
 }

browse File

]

Andrew Martin
Whose afternoon extends over several days...
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
-><-

Reply via email to