SitePoint Sponsor |
|
User Tag List
Results 1 to 4 of 4
Thread: Disable printing
-
Jul 1, 2002, 04:34 #1
- 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
-
Jul 1, 2002, 08:23 #2
- 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.
-
Jul 1, 2002, 08:32 #3
-
Jul 1, 2002, 10:10 #4
- 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@rcoMarcusJT
- 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