Results 1 to 3 of 3

Thread: Printing a file in JavaScript

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jan 2001
    Location
    Denmark
    Posts
    1,049

    Printing a file in JavaScript

    I have a file named test.htm, how do I print this file when I click a button?

  2. #2
    Lively Member Base's Avatar
    Join Date
    Aug 2001
    Location
    The Netherlands
    Posts
    65
    You mean when some one presses the button on your site and then automatically comes out the printer?
    That's not possible the closed thing is getting the print window to pop up
    Code:
       window.print();
    Good luck
    Ok

  3. #3
    Frenzied Member
    Join Date
    Feb 2001
    Posts
    1,140
    This is probably possible. If not in the standards, then in IE's extentions. But... it shouldn't be. If your users are too lazy to call apon the UA's print capabilities, then c'est domage.

    Hmmm... French spell checkers would be nice.
    Travis, Kung Foo Journeyman
    As always, RTFM.

    WWW Standards: HTML 4.01, CSS Level 2, ECMA 262 Bindings to DOM Level 1, JavaScript 1.3 Guide and Reference
    Perl: Learn Perl, Llama, Camel, Cookbook, Perl Monks, Perl Mongers, O'Reilly's Perl.com, ActiveState, CPAN, TPJ, and use Perl;
    YBMS, but Mozilla doesn't.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width