“JavaScript Nonaktifkan Klik Kanan” Kode Jawaban

JavaScript Nonaktifkan Klik Kanan

document.addEventListener('contextmenu', event => event.preventDefault());
Mobile Star

Nonaktifkan JavaScript Klik Kanan

//Disable mouse right click
$("body").on("contextmenu", function(e) {
  return false;
});
Long Finned Pilot Whale

cara menonaktifkan klik kanan di javascript

// for disabling right click use this as it is 
document.addEventListener('contextmenu', event => event.preventDefault());
event.preventDefault()
ANONYMOUS YT

Nonaktifkan JavaScript klik kanan tikus

document.oncontextmenu = document.body.oncontextmenu = function() {return false;}
Mobile Star

JavaScript Nonaktifkan Klik Kanan

document.addEventListener('contextmenu', event => event.preventDefault());

// ⇓ Test it (fiddle) ⇓
VasteMonde

Nonaktifkan JavaScript Klik Kanan

document.addEventListener('contextmenu', event => event.preventDefault());
Filthy Fox

Jawaban yang mirip dengan “JavaScript Nonaktifkan Klik Kanan”

Pertanyaan yang mirip dengan “JavaScript Nonaktifkan Klik Kanan”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya