Results 1 to 6 of 6

Thread: print this page?

  1. #1
    SG Enthusiast Cornbread's Avatar
    Join Date
    Dec 2000
    Location
    United States
    Posts
    2,573

    print this page?

    what is the html code for placing a button that says "print this page"?

    thxs


  2. #2
    Regular Member Tryn's Avatar
    Join Date
    Jan 2001
    Location
    Topeka ks
    Posts
    159
    I hope this is what you want.
    Code:
    <input type="button" value="Print this page">





    tryn
    My son Jacobs webpage
    **************************
    Everyone is entitled to be stupid, but some
    people abuse the privilege
    --Anon

  3. #3
    SG Enthusiast Cornbread's Avatar
    Join Date
    Dec 2000
    Location
    United States
    Posts
    2,573
    that worked as for placing a button on the page, but i need it to "print the page" when clicked.

    thanks for the help


  4. #4
    Regular Member Tryn's Avatar
    Join Date
    Jan 2001
    Location
    Topeka ks
    Posts
    159
    Here is a way to do it using JavaScript

    Code:
     <input type="button" value="Print this page" onClick="window.print()">
    this will print out everything on the page as far as I can tell.
    I found it Here
    http://www.scriptsearch.com/
    lots of cool stuff at that site.

    hope this will help


    Tryn
    My son Jacobs webpage
    **************************
    Everyone is entitled to be stupid, but some
    people abuse the privilege
    --Anon

  5. #5
    SG Enthusiast Cornbread's Avatar
    Join Date
    Dec 2000
    Location
    United States
    Posts
    2,573
    cool! that will work. thanks again for all the help.


  6. #6
    Regular Member Tryn's Avatar
    Join Date
    Jan 2001
    Location
    Topeka ks
    Posts
    159
    You are welcome I'm glad I could help



    tryn
    My son Jacobs webpage
    **************************
    Everyone is entitled to be stupid, but some
    people abuse the privilege
    --Anon

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •