can we disable the copy & paste option in edit menu bar of browser

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rakeshvthu
    New Member
    • May 2007
    • 27

    can we disable the copy & paste option in edit menu bar of browser

    hi all,

    can we disable the copy and paste option in edit menu bar of browser my customer does not want copying using any technique so can any one help

    how to disable that options copy and paste in menu bar using java script


    urgently required

    loooking for quick response

    pls

    bye
    rakesh
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Moved from Articles section. Please do not post questions there.

    I'm afraid that isn't possible using javascript. The browser belongs to the user and they expect certain types of behaviour. To try and circumvent that can annoy users.

    What is so important that your customer doesn't want copied?

    Comment

    • dmjpro
      Top Contributor
      • Jan 2007
      • 2476

      #3
      If it is possible with JS then it ll not be standard JS and strongly Browse specific.

      Kind regards,
      dmjpro.

      Comment

      • rakeshvthu
        New Member
        • May 2007
        • 27

        #4
        Originally posted by acoder
        Moved from Articles section. Please do not post questions there.

        I'm afraid that isn't possible using javascript. The browser belongs to the user and they expect certain types of behaviour. To try and circumvent that can annoy users.

        What is so important that your customer doesn't want copied?

        thanks for reply
        that is the email and confirm email text boxes
        he wants me to disable all the options for copying and pasting the email in confirm email box

        thank u

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by rakeshvthu
          thanks for reply
          that is the email and confirm email text boxes
          he wants me to disable all the options for copying and pasting the email in confirm email box

          thank u
          It is possible to check for this. Use the onkeydown/press events (link) to check which key has been pressed. You can also check for Ctrl using CtrlKey. To prevent the event, just return false as given in the examples.

          Comment

          • steven
            New Member
            • Sep 2006
            • 143

            #6
            Regardless of the techniques you may use, you won't be able to prevent said actions. Anyone determined enough, will _easily_ circumvent any preventative measures you put in place.

            If you don't want content / information to be copied, don't make it publically available on the Internet. Clients aren't the smartest people in the world. As the web developer, it's your responsibility to inform them of how the Internet works.

            [edited by iam_clint: do you read the posts?]

            Comment

            • acoder
              Recognized Expert MVP
              • Nov 2006
              • 16032

              #7
              Originally posted by steven
              Regardless of the techniques you may use, you won't be able to prevent said actions. Anyone determined enough, will _easily_ circumvent any preventative measures you put in place.

              If you don't want content / information to be copied, don't make it publically available on the Internet. Clients aren't the smartest people in the world. As the web developer, it's your responsibility to inform them of how the Internet works.
              This is not about information being copied. It's about preventing users from copying the first email (which may have been typed incorrectly) to the second email.

              Comment

              Working...