Chrome Extension Onclick nie działa
window.onclick = function(event) {
var target = event.target;
console.log(target.matches);
//console.log(event);
if (target.matches('.clickableBtn')) {
alert('Called Classsname clickableBtn');
}
if (target.matches('#qidirish')){
alert('Called identifer qidirish');
}
}
Shadow