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 1 of 1
  1. #1
    New Coder
    Join Date
    Jun 2008
    Location
    UK
    Posts
    53
    Thanks
    12
    Thanked 0 Times in 0 Posts

    open print box when page opens?

    hi all

    i am using this script to open a popup from a webpage when the user clicks an image

    Code:
    <a href="#" onclick="window.open('f217_printer_friendly.php','popup','width=700,height=800,scrollbars=yes,resizable=yes,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false" ><img src="../images/printer.gif" border="0" alt="Printer friendly version of this page" /></a>
    i would like when this page appears for it to automatically open the print options box, as if the user had already clicked file, print.

    I know its possible because a system we have at work does it, but i cant work out how.

    Any help much appreciated.



    Found he answer to my own question - anyone else wanting to do this check out this page:
    http://www.quackit.com/javascript/javascript_print.cfm
    Last edited by Jordan656; 03-29-2009 at 09:41 PM. Reason: found my own answer


 

Posting Permissions

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