PDA

Click to See Complete Forum and Search --> : javascript > print


shahid
Mar 5th, 2003, 05:06 AM
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.....

jeffmott
Mar 5th, 2003, 09:07 AM
No. And that's a good thing. Otherwise someone could write: onload="while (true) window.print()" and the user will not be given the choice to print them or not.

shahid
Mar 5th, 2003, 10:43 PM
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.

AndyUK
Mar 7th, 2003, 06:15 AM
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?

shahid
Mar 7th, 2003, 11:53 PM
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..