Chrome Extension OnClick tidak berfungsi
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