Results 1 to 5 of 5

Thread: javascript > print

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    javascript > print

    hi!!!

    i have a button on my page where i wrote this code
    onclick="window.print()"
    to print the page but when i click it
    i get another window to ask properties about page



    is there any way to print the page directly with out showing this window.....

  2. #2
    Member
    Join Date
    Jan 2003
    Posts
    44
    No. And that's a good thing. Otherwise someone could write:
    Code:
    onload="while (true) window.print()"
    and the user will not be given the choice to print them or not.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Cool

    thanks for replay..

    But i think it should be any thing for that purpose.....

    and the statment u wrote for print ...
    we can do many more things like this.. but why we do ????

    any way.. i hope there will be any solutions for that....

    thanks again.

  4. #4
    New Member
    Join Date
    Mar 2003
    Location
    Stafford (uni), UK
    Posts
    4
    There is definately not a way of doing that, i've looked into this before.
    Anyway, its not much trouble for the user to click 'OK' anyway is it?

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    Earth
    Posts
    762

    Cool

    ok thanks to all u . for replaying...

    but my cheif says that i didn't want to click ok button when i click the print button.

    i will tell him again that it is not possible.

    thanks again..

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