detect long right click 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 a folder with php
- console log with php
- array flat php
- create seeds laravel
- Expression #1 of ORDER BY contains aggregate function and applies to the result of a non-aggregated query laravel
- config:clear cache:clear
- Write a PHP script to generate simple random passwords [do not use rand() function] from a given string. Sample string : '1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZabcefghijklmnopqrstuvwxyz' Note : Password length may be 6, 7, 8 etc.
- array laravel validation
- check if there is string in string php
- check if a word in string php
- create laravel new project
- $date php
- $name = $name; "Robert" echo;
- current time in laravel migration
- How to make a laravel project working
- console.log on php
- date_default_timezone_set for india in php laravel
- Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar://C:
- determine the date format from a string php
- check in string match php
- error php display
- check if astring is apart of another string in php
- delete all laravel cache
- array_push