Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8922915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:58:06+00:00 2026-06-15T06:58:06+00:00

I found an answer, but it was for JQuery. Here is the link: http://jquerybyexample.blogspot.com/2010/12/disable-cut-copy-and-paste-function-for.html

  • 0

I found an answer, but it was for JQuery. Here is the link:

http://jquerybyexample.blogspot.com/2010/12/disable-cut-copy-and-paste-function-for.html

: I want something in plain Javascript which work on chrome, latest firefox, safari, and IE 8 and 9.

Update

Due to all the negative comments saying that this is a bad idea for an internet site I can only say “I agree”. Please note that this is for an “intranet” application where cut, copy, and paste need to be overidden as the default browser behaviour for cut copy and paste needs to be customized to handle embedded tags in a rich text area

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:58:08+00:00Added an answer on June 15, 2026 at 6:58 am

    of course it is not appropriate to do stuff like this, but that was not @Zubairs question, so i think voting down is not correct here, as he made his point clear.

    now to the question: if jQuery can do it, native javascript can do it of course too.

    you must prevent the cut, copy and paste events:

    document.body.oncopy = function() { return false; }
    document.body.oncut = function() { return false; }
    document.body.onpaste = function() { return false; }
    

    this prevents the right-click-context-menu, this is not needed if you use the 3 other event-handlers but just to let you know 😉

    document.body.oncontextmenu = function() { return false; }
    

    IMPORTANT: the body must be loaded (of course), document.body because IE needs it (document.oncopy will only work in chrome/firefox/safari)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using the confirmaction jQuery plugin found here: http://www.webstuffshare.com/2010/03/jquery-plugin-jconfirmaction/ And my question is
I found this answer to this question https://stackoverflow.com/a/7244888/1473523 , but in my situation am
I want to answer a phone call. I found the intent android.intent.action.ANSWER but it
I looked around but haven't found an answer to this. I have a CentOS
I have searched but have not found my answer. Disclaimer: I am brand new
I did my research but haven't found an answer to the following problem: I
Searched a lot about this problem but never found a answer, that solved it.
I know there are already many questions like mine but I found no answer
I've asked a few questions about this, but haven't found the answer (or maybe
I have searched a bit on google, but didn't really found an answer to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.