I do not know how to do that it will open dialog box for printing particular window when user clicks on link PRINT![]()
I do not know how to do that it will open dialog box for printing particular window when user clicks on link PRINT![]()
Code:<a href="javascript:void(0);" onclick="if(window.print) window.print();return false;">Print</a>
Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!
I have code to open new window
Is possible to add into this code also code which will open automatic print dialog box? I have code to print when user clicks on link Print:PHP Code:<a href="myfile.pdf" onclick="NewWindow(this.href,'Port','600','420','yes');return false;">
I can not put into href="" because there is already href="myfile.pdf"PHP Code:
<a href="javascript:void(0);" onclick="if(window.print) window.print();return false;">Print</a>
Is this possible?
Last edited by toplisek; 01-23-2006 at 01:32 PM.
Bookmarks