D
Dave
Hi,
With this code, I thought that any 'click' with the mouse would be captured
on the window level and nothing would happen, but a click on the button
triggers nevertheless the function hit(). Why is it not directed to the
function IgnoreEvents instead of the function hit?
....
<script>
window.top.captureEvents(Event.CLICK)
window.top.onclick=IgnoreEvents
function IgnoreEvents(e)
{ return false }
function hit()
{ alert('hit') }
</script>
INPUT TYPE="button" onClick="hit()"
....
Thanks for your explanation
Dave
With this code, I thought that any 'click' with the mouse would be captured
on the window level and nothing would happen, but a click on the button
triggers nevertheless the function hit(). Why is it not directed to the
function IgnoreEvents instead of the function hit?
....
<script>
window.top.captureEvents(Event.CLICK)
window.top.onclick=IgnoreEvents
function IgnoreEvents(e)
{ return false }
function hit()
{ alert('hit') }
</script>
INPUT TYPE="button" onClick="hit()"
....
Thanks for your explanation
Dave