<!DOCTYPE html>
<html lang="id">
<head>
    <meta charset="utf-8">
    <title>JavaScript Contextmenu Event</title>
</head>
<body>
    <button type="button" oncontextmenu="alert('Anada telah meng-klik kanan tombol!');">Klik Kanan Saya</button>
    <a href="#" oncontextmenu="alert('Anda telah meng-klik kanan tombol!');">Klik Kanan Saya</a>
</body>
</html>

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.