“Nonaktifkan JavaScript Klik Kanan” Kode Jawaban

Nonaktifkan JavaScript 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

Nonaktifkan JavaScript Klik Kanan

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

Nonaktifkan JavaScript Klik Kanan

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

Jawaban yang mirip dengan “Nonaktifkan JavaScript Klik Kanan”

Pertanyaan yang mirip dengan “Nonaktifkan JavaScript Klik Kanan”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya