<img src=csdn.gif onclick=xy(this)>
<script>
function xy(obj){
s='x='+event.offsetX+'<br>y='+event.offsetY
alert(s)
window.open("about:blank").document.write(s)
}
</script>
<script>
function xy(obj){
s='x='+event.offsetX+'<br>y='+event.offsetY
alert(s)
window.open("about:blank").document.write(s)
}
</script>
onclick="alert('x=' + window.event.clientX + ';' + 'y=' + window.event.clientY);"