SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Evangelist FCC's Avatar
    Join Date
    May 2006
    Posts
    417
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Automatic print-screen popup

    Hey guys,

    Sorry if this is in the wrong forum. You know when you click on a print article button for a webpage, and then it redirects you an verison of the article that is printer friendly. Sometimes the print page option popups automatically once redirected to save the user the trouble of going to file and then print.

    How is this done?

    Thanks,

  2. #2
    SitePoint Wizard bronze trophy Tyssen's Avatar
    Join Date
    Oct 2005
    Location
    Brisbane, QLD
    Posts
    4,067
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You use javascript:

    HTML Code:
    window.print();

  3. #3
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,478
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You might want to look at this recent article from A List Apart as well:
    http://www.alistapart.com/articles/printtopreview


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
  •