Welcome to TalkGraphics.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2019
    Posts
    2

    Default To anyone out there - How to Disable right click

    Hi I was wondering how I would disable the right click feature in regards to photos.
    It used to be easy to do but I'm finding Xara Web Design Premium won't allow me to do it
    or it asks that I paste code but it doesn't tell me where to paste that code.
    Other web programs I've used allowed me to click a box and it was done.

    I need help with this and please be specific with the instructions.

    Lady J 223

  2. #2
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    443

    Default Re: To anyone out there - How to Disable right click

    To disable right click on a single page or the whole website you can use the same code, but in different places. I can't remember the source or I would link to the author.

    Individual pages: Click 'Link Properties' > 'Page' > 'HTML Code (body) and paste the code.
    Whole website: Click 'Link Properties' > 'Website' > 'HTML Code (body) and paste the code.

    Click image for larger version. 

Name:	!Link Properties.jpg 
Views:	11 
Size:	4.4 KB 
ID:	123903

    Code:

    <script language=JavaScript>
    <!--

    //Disable right mouse click Script
    //By Geek Site.in


    var message="Function Disabled!";

    ///////////////////////////////////
    function clickIE4(){
    if (event.button==2){
    alert(message);
    return false;
    }
    }

    function clickNS4(e){
    if (document.layers||document.getElementById&&!docume nt.all){
    if (e.which==2||e.which==3){
    alert(message);
    return false;
    }
    }
    }

    if (document.layers){
    document.captureEvents(Event.MOUSEDOWN);
    document.onmousedown=clickNS4;
    }
    else if (document.all&&!document.getElementById){
    document.onmousedown=clickIE4;
    }

    document.oncontextmenu=new Function("alert(message);return false")

    // -->
    </script>

  3. #3
    Join Date
    Apr 2019
    Posts
    2

    Default Re: To anyone out there - How to Disable right click

    THANK YOU to the individual that sent me the code and where to insert it. Code works wonderfully.

  4. #4
    Join Date
    Sep 2000
    Location
    Bracknell, UK
    Posts
    8,004

    Default Re: To anyone out there - How to Disable right click

    Quote Originally Posted by Lady J 223 View Post
    THANK YOU to the individual that sent me the code and where to insert it. Code works wonderfully.
    Don't imagine for a moment that that will stop everyone from downloading images from your web pages.

  5. #5
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    443

    Default Re: To anyone out there - How to Disable right click

    Quote Originally Posted by pauland View Post
    Don't imagine for a moment that that will stop everyone from downloading images from your web pages.
    No, it won't stop the determined, but it does stop the casual visitor which would be the vast majority.

  6. #6
    Join Date
    Sep 2000
    Location
    Bracknell, UK
    Posts
    8,004

    Default Re: To anyone out there - How to Disable right click

    Quote Originally Posted by Chris M View Post
    No, it won't stop the determined, but it does stop the casual visitor which would be the vast majority.
    A lot of people think it gives absolute security.

    In practice most people want to protect images people don't want anyway.
    Most people seem to think they will lose money if the image is copied, but that's highly unlikely.

    If you don't want an image copied, add a watermark/reduce the image resolution/reduce the image quality etc.

    Ask yourself why copying is an issue and be sure that it is.

  7. #7
    Join Date
    Dec 2018
    Location
    Australia
    Posts
    443

    Default Re: To anyone out there - How to Disable right click

    Quote Originally Posted by pauland View Post
    A lot of people think it gives absolute security.

    In practice most people want to protect images people don't want anyway.
    Most people seem to think they will lose money if the image is copied, but that's highly unlikely.

    If you don't want an image copied, add a watermark/reduce the image resolution/reduce the image quality etc.

    Ask yourself why copying is an issue and be sure that it is.
    Perfectly true, and very good advice.

 

 

Tags for this Thread

Bookmarks

Posting Permissions

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