Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts

    modding this script to output two pages

    Hi,

    Instead of printing just one page, I want it to print the same page twice.

    I have tried adding the number, 2 to various places but it doesn't seem to do it for me.

    Code:
    <form action="javascript:print();" method="post">
      <input type="submit" action="javascript:print();" name="button" value="print the page" />
      </form>
    if possible, I'd like it just to print woithout bringin up the 'print' window, where you choose number of copies etc.

    Any ideas?

    bazz
    Last edited by bazz; 06-16-2008 at 11:47 AM.

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,308
    Thanks
    203
    Thanked 2,563 Times in 2,541 Posts
    I don't think this is possible. Print is part of the operating system and the print window cannot be over-ridden. When I tried onclick = "print();print()" it locked up my browser.

  • #3
    Master Coder
    Join Date
    Apr 2003
    Location
    in my house
    Posts
    5,211
    Thanks
    39
    Thanked 201 Times in 197 Posts
    Thanks Philip.

    I guess then that I need to find a M$ way of telling the OS to do it - which would likely make it not work for those on a different OS.

    Hmmm, I thought I had advanced myself with the notion that everything was possible - it was just a matter of difficulty (some one's sig I think). It seems that it is still difficult

    Ho Hum.

    bazz


  •  

    Posting Permissions

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