www.webdeveloper.com
Results 1 to 8 of 8

Thread: Disable Print

  1. #1
    Join Date
    Aug 2003
    Posts
    3

    Disable Print

    I would like to make some pages of a website I am creating unprintable. Does anyone know if this is possible?

  2. #2
    Join Date
    Aug 2003
    Location
    In front of my computer
    Posts
    726
    I'm not a guru so i'm not sure but just a thought, even if you could do this...what's to stop them from highlighting ur page and copying it over and then printing it? (or save target as your photo's and print them individually?)

    If you do find a way to make them nonprintable, turn all your javascripts into external ones and put all your html work into a javascript so they can't view your sourcecode. just to make it harder on them

  3. #3
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Originally posted by Sux0rZh@jc0rz
    ...and put all your html work into a javascript so they can't view your sourcecode.
    With this method, your site will no longer work for the 13% of users who turn JavaScript off, and will certainly not be accessable. What you can do, however, is possible to send print stylesheets to the browser using the <link> tag:

    <link rel="stylesheet" media="print" href="print_styles.css" type="text/css">

    So, in the print stylesheet, you could set everthing to display:none;

    You might also be interested in http://www.dynamicdrive.com/dynamici...printstyle.htm

  4. #4
    Join Date
    Aug 2003
    Posts
    3
    Thanks so much for your help. I will try your suggestion and let you know how it goes!

  5. #5
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104
    Ok, hope it works for you...

  6. #6
    Join Date
    Aug 2003
    Posts
    3

    Thanks so much!

    Thanks again for your suggestion. It did work! I also found a script on Dynamic Drive for disabling right clicking. I know this won't keep everyone from copying my work, but it will help!

  7. #7
    Join Date
    Dec 2002
    Location
    High on life
    Posts
    10,104

    Re: Thanks so much!

    Originally posted by Mrs Pod
    but it will help!
    No, not really... For the most part, all no rightclick scripts do is annoy the visitor.

  8. #8
    Join Date
    Dec 2002
    Location
    WI, United States
    Posts
    1,372

    Re: Re: Thanks so much!

    Originally posted by pyro
    For the most part, all no rightclick scripts do is annoy the visitor.
    And tempt me to steal the code, just because I know they were trying to hide it. lol

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles