crop_rotate
Run
<!DOCTYPE html> <html> <head> <style> ul { border:0.1px solid black; list-style:none; padding:0; margin:0; display:none; } li { border:0.1px solid black; padding:5px; } .btn { padding:10px; background-color:#007bff; border:none; color:white; } </style> </head> <body> <h1>JavaScript on contextmenu</h1> <p>menu will display when contextmenu [right click]</p> <ul id="menu"> <li>Copy</li> <li>Cut</li> <li>Delete</li> <li>Select all</li> </ul> <script> let menu = document.getElementById('menu'); document.addEventListener("contextmenu", function(e) { e.preventDefault(); menu.style.display = "inline-block"; }); </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxoZWFkPg0KPHN0eWxlPg0KdWwNCnsNCiAgYm9yZGVyOjAuMXB4IHNvbGlkIGJsYWNrOw0KICBsaXN0LXN0eWxlOm5vbmU7DQogIHBhZGRpbmc6MDsNCiAgbWFyZ2luOjA7DQogIGRpc3BsYXk6bm9uZTsNCn0NCmxpDQp7DQogIGJvcmRlcjowLjFweCBzb2xpZCBibGFjazsNCiAgcGFkZGluZzo1cHg7DQp9DQogLmJ0bg0KIHsNCiAgIHBhZGRpbmc6MTBweDsNCiAgIGJhY2tncm91bmQtY29sb3I6IzAwN2JmZjsNCiAgIGJvcmRlcjpub25lOw0KICAgY29sb3I6d2hpdGU7DQogfQ0KPC9zdHlsZT4NCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+IDo6LXdlYmtpdC1zY3JvbGxiYXJ7d2lkdGg6N3B4O2hlaWdodDo3cHg7fTo6LXdlYmtpdC1zY3JvbGxiYXItdHJhY2t7YmFja2dyb3VuZDojZmZmO306Oi13ZWJraXQtc2Nyb2xsYmFyLXRodW1ie2JvcmRlci1yYWRpdXM6NXB4O2JhY2tncm91bmQ6IzJmNDVmZjt9PC9zdHlsZT48L2hlYWQ+DQo8Ym9keT4NCjxoMT5KYXZhU2NyaXB0IG9uIGNvbnRleHRtZW51PC9oMT4NCjxwPm1lbnUgd2lsbCBkaXNwbGF5IHdoZW4gY29udGV4dG1lbnU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