Printing a specific div by a click through js or something

Discussion in 'JavaScript' started by hansab, Apr 3, 2010.

  1. #1
    Is there any way to print a specific div content when user clicks print ?

    <div id="forprint>
    adfadfadfadfa
    </div>

    Click Here to Print


    When someone clicks, only the content in forprint div should be printed. Please help.
     
    hansab, Apr 3, 2010 IP
  2. krsix

    krsix Peon

    Messages:
    435
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
  3. hansab

    hansab Active Member

    Messages:
    162
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    58
    #3
    Thanks my problem is solved.
     
    hansab, Apr 4, 2010 IP