Hello,
Is there a way (in JS) to detect listeners on an element and identify
them? The purpose would be to selectively attach additional listeners
if certain conditions are met. For example, I want to attach
listenerA to links that go to PDFs and listenerB to links that go off
site. But, I don't want both A and B attached to offsite links that
point to PDFs.
I would like to be able to choose which to attach, so that
if (! ele has listenerA) attach listenerB. Or vice versa.
I have looked through my reference materials and googled but I don't
see anything that seems to answer this question.
Thanks.
mp
--
Michael Powe mi*****@trollop e.org Naugatuck CT USA
"...we built a new continent in cyberspace where we could go live and be
free. And the nice thing is that, because we built it, we didn't have
to steal it from aboriginal peoples. It was completely empty, and we
invite everyone to live there with us. No immigration restrictions.
There's room for everyone in the world. Come live in the free world
and be free. That's our idea." -- Richard Stallman