I want custom printing

Discussion in 'JavaScript' started by abad999, Apr 26, 2012.

  1. #1
    Hello:
    Please, I want to print a page of my site ...
    1 - Automatic without pressing the Print button.
    2 - without displaying the header and footer.

    Please help me
     
    Last edited: Apr 26, 2012
    abad999, Apr 26, 2012 IP
  2. abad999

    abad999 Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Sorry This is the image
     

    Attached Files:

    abad999, Apr 26, 2012 IP
  3. rainborick

    rainborick Well-Known Member

    Messages:
    424
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    120
    #3
    You can't control the header and footer printing with JavaScript. That's a user-only setting in the browser.
     
    rainborick, Apr 26, 2012 IP
  4. sguduru

    sguduru Greenhorn

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #4
    sguduru, May 10, 2012 IP
  5. marketing3

    marketing3 Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    If you like to use javascript then you may use this code for the purpose of creating print button for your webpage............ the code is given as below:

    <SCRIPT LANGUAGE="JavaScript"> if (window.print) {document.write('<form><input type=button name=print value="Print" onClick="window.print()"></form>');} </script>
     
    marketing3, Jun 1, 2012 IP