check if right mouse click angular
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:
- all dates the year php
- array value exists php
- control type variable php
- array key existence func php
- brew downgrade php 8 to 7.4
- eloquent remove CREATED_AT
- convert timestamp php
- ? for types in php
- Library not loaded: /usr/local/opt/icu4c/lib/libicuio.64.dylib Referenced from: /usr/local/bin/php
- To print current time which function will use in pphp
- check in string is part oof other string php
- debugger in laravel
- $mpdf
- creating seed file laravel
- auto generated password in php
- check composer php version
- add header to php
- composer laravel istall
- check url parameter if not redirect wordpress
- drop table phpmyadmin
- after create a new laravel project and copy old project on it how insatall all packages
- Method Illuminate\Database\Eloquent\Collection
- date() function
- array filter php get first object