Need code for a 'printer friendly version' link

Discussion in 'Customization & add-ons' started by sdstren, Mar 7, 2008.

  1. sdstren

    sdstren New Member

    Nov 30, 2007

    I am trying to create a link on one of my pages that says

    'click here for a printer friendly version'

    I have just taught myself how to manipulate the css by creating a media class in which the display is none when the media is print as follows:

    @media print
    .hide_print {display:none;}

    The css class will take care of hiding the items in the file that I don't want to show when the file is printed.

    What I can't figure out or find on the internet is how to do this:
    When the user clicks on the 'Printer Friendly Version' link, I want to open my file_to_print.htm in a print preview window.
    How do I do that? I couldn't find any target= property to go on an href that would say 'send it to the printer'.

    Anybody know the code to do that?


Share This Page