How to creat print botton

Discussion in 'PHP' started by adsegzy, Aug 7, 2010.

  1. #1
    Hello friends,

    I want to create a print button on my page where by the visitor can print the page. pls what is the syntax?

    regards,
    adsegzy
     
    adsegzy, Aug 7, 2010 IP
  2. mr_p2y

    mr_p2y Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You cant use this code

     
    mr_p2y, Aug 7, 2010 IP
  3. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #3
    Here's an alternative including an image

    
    <a href="javascript:window.print()"><img src="images/print.gif" border="0" alt="Print off this page" title="Print off this page"></a>
    
    Code (markup):
    View attachment 42830
     
    Last edited: Aug 7, 2010
    MyVodaFone, Aug 7, 2010 IP