a script for an alert when mouse right click is done 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:
- clear cache swr
- date formte php
- How to execute “php artisan migrate” and other Laravel commands in remote server?
- <?php ini_set('display_errors', 'On'); error_reporting(E_ALL); $finalIURL =
- check php version
- convert timestamp integer to date php
- count charctor in php
- cloudinary laravel
- check typeof php
- ctrl + d in vscode in phpstorm
- add hour minute in datetime in php
- array_search in php
- fetch body show in php code
- errors throwing in php
- artisan cache command in laravel
- dateformat j/m/a php
- convert lower to upper case php
- +1 day in date php
- check if after specific position has string php
- default header value in php
- <?php include localhost:8080/index.php?>
- echo errors of php
- echo php console
- $_server url