Need some help about printing a page

Discussion in 'JavaScript' started by beven, Jan 24, 2011.

  1. #1
    hi dear,
    I have a website & want to add a print option there. Basically i have a form to fill a user as universities have admission form & user fill that form & preview it & take out print.

    Any one can share with me... I am using print.window method to do this but fail to so so.

    Any effort will be appreciated..........
     
    beven, Jan 24, 2011 IP
  2. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Don't you mean this? :confused:
    window.print();
     
    Cash Nebula, Jan 25, 2011 IP
  3. beven

    beven Well-Known Member

    Messages:
    483
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    113
    #3
    yes I am using this

    <INPUT TYPE="button" onClick="window.print()">

    when we press the button it prompt dialog box of printer............I wish to add a preview button manually to take a preview of page before priting
     
    beven, Jan 25, 2011 IP
  4. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Cash Nebula, Jan 25, 2011 IP
  5. beven

    beven Well-Known Member

    Messages:
    483
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    113
    #5
    Thanks for reply wht is the best solution for this problem. what u suggest to do this.. I will try this
     
    beven, Jan 26, 2011 IP
  6. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I think the best solution is a normal print link. Many printers automatically show the preview window so there is no need for a preview link.
     
    Cash Nebula, Jan 26, 2011 IP
  7. beven

    beven Well-Known Member

    Messages:
    483
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    113
    #7
    okay thanks for your efforts............
     
    beven, Jan 27, 2011 IP