No right click

    Partagez

    everybody
    Admin

    Number of posts : 335
    Age : 49
    Registration date : 12/04/2008

    default No right click

    Message  everybody le Dim Juil 05, 2009 12:04 pm



    portugal - Desactivar a função de Click direito.
    france - Désamorcer la fonction de Click droit.
    england - To defuse the function of right Click.


    Exemplo


    Code:

    <SCRIPT language="JavaScript1.2">if (window.Event)
    document.captureEvents(Event.MOUSEUP);
    function nocontextmenu() 
    {
    event.cancelBubble = true
    event.returnValue = false;
    return false;
    }
    function norightclick(e)   
    {
    if (window.Event)   
    {
    if (e.which == 2 || e.which == 3)
    return false;
    }
    else
    if (event.button == 2 || event.button == 3)
    {
    event.cancelBubble = true
    event.returnValue = false;
    return false;
    }   
    }
    document.oncontextmenu = nocontextmenu;      
    document.onmousedown = norightclick;
    </SCRIPT>

      La date/heure actuelle est Sam Déc 10, 2016 9:54 am