disabling print option

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • parag mundra
    New Member
    • Mar 2012
    • 4

    disabling print option

    Is there any way by which i can disable the print option of the browser or hide the dialog box of the print option so user can not take the print.?
    I used css media print but i want to hide it............
    Last edited by Dormilich; Mar 27 '12, 05:27 AM.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    Is there any way by which i can disable the print option of the browser or hide the dialog box of the print option so user can not take the print.?
    since printing is the responsibility of the browser, no.

    even if you can somewhat make it inconvenient to print, disabling JS would probably resolve that.

    Comment

    • parag mundra
      New Member
      • Mar 2012
      • 4

      #3
      Is there any way by which we can change the browser settings dynamically?

      How can i disable the print button in my particular page or i can hide the whole tool bar at the page load not using click event.......... .....

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        Is there any way by which we can change the browser settings dynamically?
        no. would you like to have your browser settings changed by any (malicious) website?


        How can i disable the print button in my particular page or i can hide the whole tool bar at the page load not using click event
        if it’s your button (generated through HTML) … just omit it. if it’s the button of the browser GUI … no way.
        you can only disable the tool bar when explicitly opening a window through JavaScript (parameter set in window.open()). though whether that is successful depends on the user’s preference.

        Comment

        • parag mundra
          New Member
          • Mar 2012
          • 4

          #5
          Thank You Dormilich.....

          It means we also can not change any browser config setting dynamically.

          So what should i do for content security?

          I already disabled all the cntrl + options....

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            So what should i do for content security?
            if you mean that the user should not be able to change his copy of your HTML … impossible.

            Comment

            • parag mundra
              New Member
              • Mar 2012
              • 4

              #7
              i used print media option using CSS and it's working the user is not getting my content but i was looking for disable option.
              By the way Thank you so much friend......

              Comment

              • Rabbit
                Recognized Expert MVP
                • Jan 2007
                • 12517

                #8
                Just be aware though that not every browser version supports the print media option in CSS.

                Comment

                Working...