CrazyEngineers
  • How To Disable Right Click On Web Page Or Link?

    4M4N

    4M4N

    @4m4n-jQmegc
    Updated: Oct 26, 2024
    Views: 1.3K
    How to disable right click on a page, image or link?
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Morningdot Hablu

    MemberNov 13, 2010

    Re: Regarding Web Designing

    Hope this helps you...
    <script language=JavaScript>

    var k="mohit";
    function click(z) {
    if (document.all) {
    if (event.button == 2) {
    alert(k);
    return false;
    }
    }
    if (document.layers) {
    if (z.which == 3) {
    alert(k);
    return false;
    }
    }
    }
    if (document.layers) {
    document.captureEvents(Event.MOUSEDOWN);
    }
    document.onmousedown=click;
    </script>
    Are you sure? This action cannot be undone.
    Cancel
  • 4M4N

    MemberNov 13, 2010

    Re: Regarding Web Designing

    thanx mohit, but i need without javascript
    Are you sure? This action cannot be undone.
    Cancel
  • Morningdot Hablu

    MemberNov 13, 2010

    Re: Regarding Web Designing

    Don't have much idea about html.
    Hope any other CEan can help you...!
    Are you sure? This action cannot be undone.
    Cancel
  • 4M4N

    MemberNov 13, 2010

    Re: Regarding Web Designing

    m asking for html because there might be a case when javascript is disabled on the client browser so in that case this will not work
    Are you sure? This action cannot be undone.
    Cancel
  • themask

    MemberNov 25, 2010

    Re: Regarding Web Designing

    No. you cannot do this with HTML alone.
    Are you sure? This action cannot be undone.
    Cancel
  • dscitsolutions

    MemberJan 7, 2011

    Re: Regarding Web Designing

    U can do it with the help of javascript only.With the help of HTML is not possible.U try to use javascript.
    Are you sure? This action cannot be undone.
    Cancel
  • whiz.kid.aniket

    MemberJan 8, 2011

    Re: Regarding Web Designing

    4M4N
    m asking for html because there might be a case when javascript is disabled on the client browser so in that case this will not work

    90 perc users worldwide have javascript enabled on thier browser!

    #-Link-Snipped-# | #-Link-Snipped-#
    Are you sure? This action cannot be undone.
    Cancel
  • 4M4N

    MemberJan 9, 2011

    Re: Regarding Web Designing

    whiz.kid.aniket
    90 perc users worldwide have javascript enabled on thier browser!

    #-Link-Snipped-# | #-Link-Snipped-#
    What about other 10 perc??????
    Are you sure? This action cannot be undone.
    Cancel
  • 4M4N

    MemberJan 9, 2011

    Re: Regarding Web Designing

    whiz.kid.aniket
    90 perc users worldwide have javascript enabled on thier browser!

    #-Link-Snipped-# | #-Link-Snipped-#
    What about the other 10 perc??????
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register