event click right mouse
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:
- cart icon in woocommerce
- create random unique string
- create laravel 5.8 project using composer
- create seed file laravel
- 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`))
- add days with dates php
- display all php erros
- check key in array php
- composer require laravel/ui for laravel 6
- create laravel project in laravel/laravel
- artisan migrate single class
- array in array php foreach
- @ production: `cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --no-progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js` npm ERR! Exit status 1
- convert upper case php
- composer install laravel 7 not installing
- all php error report
- euclid algorithm
- convert to format date php
- custom post type with taxonomy
- disable errors php
- alter seeder in laravel
- codeigniter 4 radio button isset
- $join is_array() in code
- check format have image laravel post