Answers for "chrome extension onclick not working"

0

chrome extension onclick not working

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');
		}
}
Posted by: Guest on June-20-2021

Browse Popular Code Answers by Language