Click du bouton droit

Fermé
StayCool - 2 avril 2002 à 21:35
 kevin - 3 avril 2002 à 01:30
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

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