Click du bouton droit

StayCool -  
 kevin -
Yo tout le monde!!!

Comment fait-on pour empecher le click du bouton droit sur une page web?

Merci à l'avance pour vos réponse!
;-)

1 réponse

  1. kevin
     
    essaye :

    <script language="JavaScript">
    function clickDroitInterdit()
    {
    if (event.button==2)
    {
    alert('click droit interdit')
    }
    }
    document.onmousedown=clickDroitInterdit
    </script>

    Le script marche sur ie 5 mais je ne l'ai pas testé sur NN 4

    A+
    kevin
    0