5
Contributors
6
Replies
8
Views
5 Years
Discussion Span
Last Post by Biiim
0

hi gurusubramani, Use the following javascript code in your index.php page and it will used to disable the mouse right click option.

    <script language=JavaScript>
        var message="Function Disabled!";
        function clickButton()
        {
            if (document.layers||document.getElementById&&!document.all)
            {
                alert("Permission Restricted");
                return false;
            }
        }
        if (document.layers)
        {     
            document.onmousedown=clickMF;
        }
        else  
        {
            document.oncontextmenu=new Function("return false")
        }
    </script>
0
  function clickButton()
    {
        if (document.layers||document.getElementById&&!document.all)
        {
            alert("Permission Restricted");
                return false;
        }
    }
    if (document.layers)
    {     
        document.onmousedown=clickMF;

    }
    else  
        {
        document.oncontextmenu=new Function("return false")

        }
0

if you want to hide data you can hide it within flash, html/javascript is always available to view - the right click disabling just annoys me, to put it politely. Means i have to go to the menu instead of right clicking - such an effort.

Will prevent less technical people though

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.