Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • tiggercat Friend
    #177141

    Hi there,

    Can anyone please advise the code for printing a webpage? What I am trying to do is I want to have a PRINT button on the front page ( no articles on the front page) to print the entire webpage.

    This is for a single page website.

    Thanks.

    Nicole

    HeR0 Friend
    #453560

    Hi Tiggercat

    I think that the button is not necessary because all browsers have print button.

    Regards

    tiggercat Friend
    #455435

    <em>@HeR0 320402 wrote:</em><blockquote>Hi Tiggercat

    I think that the button is not necessary because all browsers have print button.

    Regards</blockquote>

    Thanks, HeRo, this print button is to help users who are confused and don’t know how to use their browser’s print button. I’ve tried to use window.print “<form><input type=”button” value=” Print this page “
    onclick=”window.print();return false;” /></form> “
    but the page couldn’t print friendly, it print half of the page. Please advise and help.

    Thanks,
    Nicole

    HeR0 Friend
    #455804

    Hi Tiggercat
    Joomla article component have set config display sprint icon on article detail page. So you should go to backend => Content => Articles Manager => click to “Options” button on toolbar then set “Show Print Icon” to “Show”
    Or if you want to customize page, you can use code below:
    <a href=”#” onclick=”window.print();return false;”>print</a>

    Regards,

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  HeR0 12 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum