كود تحذير استخدام الزر الأيمن في المره الأولى وتجميده في المره الثانية
كود:
<script LANGUAGE="JavaScript">
document.onmousedown=click
var times=0
var times2=10
function click() {
if ((event.button==2) || (event.button==3)) {
if (times>=1) { bye() }
alert("تــحــذيــر!! لاتنقر على زر الماوس الأيمن مرة أخرى و إلا سوف تندم");
times++ } }
function bye() {
alert("ماتسمع الكلام!؟");
bye() }
</script>