click right mouse javascript
el.addEventListener('contextmenu', function(ev) {
ev.preventDefault();
alert('success!');
return false;
}, false);document.body.onclick = function (e) {
var isRightMB;
e = e || window.event;
if ("which" in e) // Gecko (Firefox), WebKit (Safari/Chrome) & Opera
isRightMB = e.which == 3;
else if ("button" in e) // IE, Opera
isRightMB = e.button == 2;
alert("Right mouse button " + (isRightMB ? "" : " was not") + "clicked!");
}
Also in PHP:
- create auto image path folder in laravel 8
- errors and excpetion handling in php
- display errors php
- drupal/core 9.0.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.
- Target class [PlayerController] does not exist.
- create custom post type with category in wordpress functions.php
- Interval Between Different Dates
- Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /var/www/service.ramondettiforwarding.com/lib/vendor/guzzlehttp/guzzle/src/Middleware.php on line 3432184904
- '%r%i timeformat php
- datetime get current date php
- echo json php
- file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure
- check that php array has specific key
- do I have to pass a path in html get request
- apache 2 lib php 7.4
- all error in php
- SQLSTATE[42000]: Syntax error or access violation: 1071
- array uniuq in php
- display the type in php
- check if string contains specific string
- best way to redirect with php
- b64decode php
- echo in console php
- Write a PHP script that generates a 6 digit password from the given string without using random function?