Y
yusuf
Hi,
I am writing a greasemonkey script and I can capture the click event.
What I want to know is how do I determine that the click was on a URL
and not just a normal click. Thanks.
document.addEventListener('click', function(event) {
// event.target is the element that was clicked
alert(event.target.toString());
}, true);
I am writing a greasemonkey script and I can capture the click event.
What I want to know is how do I determine that the click was on a URL
and not just a normal click. Thanks.
document.addEventListener('click', function(event) {
// event.target is the element that was clicked
alert(event.target.toString());
}, true);