SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    123
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Disable printing

    Is it possible to disable printing webpage?

    Thanks

  2. #2
    morphine for a wooden leg randem's Avatar
    Join Date
    Jun 2002
    Location
    .chicago.il.us
    Posts
    957
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe I'm too much of a purist, but why on earth would you want to disable printing of a web page? That indicates to me that you're trying to use the web for more than it was intended to be used for. Perhaps you should consider an application at this point?

    For what it's worth, I believe printing is "impaired" in IE for secure (HTTPS) pages... not sure on that one.

  3. #3
    Your Lord and Master, Foamy gold trophy Hierophant's Avatar
    Join Date
    Aug 1999
    Location
    Lancaster, Ca. USA
    Posts
    12,305
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by randem
    For what it's worth, I believe printing is "impaired" in IE for secure (HTTPS) pages... not sure on that one.
    Nope.. I print secure pages almost everyday as my wife and I purchase most non-consumables on the Internet.
    Wayne Luke
    ------------


  4. #4
    The doctor is in... silver trophy MarcusJT's Avatar
    Join Date
    Jan 2002
    Location
    London
    Posts
    3,509
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can hide content when printing by using the CSS "media" attribute, but be warned that this is CSS Level 2, and thus is only properly supported by IE5+ and NS6+/Moz1+


    Modify the techniques suggested here to fit your needs:
    http://www.alistapart.com/stories/goingtoprint/
    http://www.w3schools.com/css/css_mediatypes.asp
    http://www.webreview.com/style/2000/01_07_00.shtml

    Browser support listed here:
    http://www.codestyle.org/css/media/p...rSummary.shtml


    M@rco
    MarcusJT
    - former ASP web developer / former SPF "ASP Guru"
    - *very* old blog with some useful ASP code

    - Please think, Google, and search these forums before posting!


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
  •