JavaScript sense right click
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:
- run php artisan cache:clear
- case upper php
- extend php maximum execution time
- 10 min sleep php
- SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 767
- .htaccess file in codeigniter 3
- clear laravel
- ERROR: Module mpm_event is enabled - cannot proceed due to conflicts. It needs to be disabled first! Considering conflict mpm_worker for mpm_prefork: ERROR: Could not enable dependency mpm_prefork for php7.2, aborting
- condition for both of one should be true laravel eloquent
- check chartercount in php
- convert request image as base64 string php
- fetch today data in php
- enc php code base64
- display category name wordpress
- 500 (internal server error) laravel
- WordPress add query string to URL
- ?? ' ' operator in php laravel
- Customizing The Validation Attributes
- enable helper methods laravel 6
- How to execute “php artisan migrate” and other Laravel commands in remote server?
- Carbon\Carbon::today()->format('Y-m-d') in blade
- artisan laravel install
- date format method in php
- Clear and delete the folder after the time specified in php