I am able to capture click event any where on my form but there is an Iframe on my page when I click on that it doesn't get capture.
here is a code.
document.onclick = function(e) { alert(e.clientX + "|" + e.clientY); }
Thanx
Iframe's won't "bubble up" their click events to the parent window. You would have to put something similar on the Iframe page, like this:
document.onclick = function(e) {
if (window.parent.iframeClicked) {
window.parent.iframeClicked(e);
}
}
and then define the iframeClicked function on your parent window:
function iframeClicked(e) {
/* your code here */
}