14
<body onclick="listener()">
15
<span id="clickListener" onclick="listener()">
16
This has a click listener.
18
<span id="touchstartListener" ontouchstart="listener()">
19
This has a touchstart listener.
21
<span id="mousedownListener" onmousedown="listener()">
22
This has a mousedown listener.
24
<span id="noListener">
25
This has no specific listener (the body listener should be ignored).
27
<a href="http://www.test.com/" id="link">
28
This has no specific listener, but it's a link.