document.body.onclick - Why Would This Not Work ??
Now here's something that I thought was basic and simple to do...
document.body.onclick = alert('test');
...I put that just before my close body tag, thinking that from now an anytime I clicked on my page I'd see an alert saying "test".
What actually happens, though, is when the page loads the alert pops up and nothing happens afterward.
The clicks are just ignored.
Why wouldn't this work ??