Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

Q1182 Is there a way to disable the cut and copy function?

You are here: irt.org | FAQ | JavaScript | Event | Q1182 [ previous next ]



<script language="JavaScript1.1"><!--
function mouseup(e) {
    if (document.layers) {
        if (!window.find('Please do not cut and paste.',false,false))
            window.find('Please do not cut and paste.',false,true);
    else if (document.all) {
        var rangeText = document.body.createTextRange();
        window.findText('Please do not cut and paste.');

    return true;
if (document.layers) window.captureEvents(Event.MOUSEUP);



<!-- place your content after this line -->

<img src="picture.gif" width="100" height="100">

some text

<a href="somewhere.htm">text link</a>

<!-- and before this line -->

Please do not cut and paste.


It is still possible to use CTRL+A (for marking all text) and then CTRL+C (for copying all marked text) and CTRL+V for pasting in Internet Explorer.

With Netscape Navigator, simply choose Edit, then Select All, and finally Copy.

Feedback on 'Q1182 Is there a way to disable the cut and copy function?'

©2018 Martin Webb