detect right click js
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:
- console log php
- $_SERVER php where link came from
- ?? null laravel
- F d php
- catch erro message php
- codeigniter last insert id example
- check string contain symbol in php
- check isset key in array php
- Composer detected issues in your platform: Your Composer dependencies require the following PHP extensions to be installed: fileinfo
- current date format in php
- check is home page
- check_string_lenght in php
- 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
- clear cache migration laravel
- Making visible or hidden attributes from Eloquent temporarily
- Which are valid PHP error handling keywords? try throw catch finally
- failed to open stream: no such file or directory php
- codeignitor get insert id
- check if after specific position has string php
- check an string incudes a string php
- console.log in pgp
- artisan migrate single class
- echo date php format
- close register of members laravel