Blokada menu kontekstowego JS
if, blokada, menu, kontekstowego, the,
alertmessage
return, documentlayers, this, allow, your,
if, blokada, menu, js, kontekstowego, the,
alertmessage
return, , ==, documentlayers, on, this, allow, your, message, sitequot, dont, put, that, alert, box, between, quotes
function, for,
, documentall, eventbutton, message=quotsorry, 2, language=quotjavascriptquotgt
nbsplt
var, false
if, ltscript, ewhich, 3, we, false
if,
documentcaptureeventseventmousedown
documentonmousedown=click
, gt
ltscriptgt
, clicke,
Czwartek 03 Kwiecień 2025r.
Godz 00:00:00
Postów: 251
Blokada menu kontekstowego JS
<script language="JavaScript">
<!--
var message="Sorry, we don't allow that on this site!."; // Put your message for the alert box between the quotes.
function click(e) {
if (document.all) {
if (event.button == 2) {
alert(message);
return false;
}
}
if (document.layers) {
if (e.which == 3) {
alert(message);
return false;
}
}
}
if (document.layers) {
document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown=click;
// -->
</script>
Darmowy hosting zapewnia PRV.PL