Man am I having a bad time!
As far as I know the following code should work:
window.captureEvents (Event.CLICK|Event.FOCUS);
window.onclick=myHandler;
window.onfocus=HandleFocus;
function myHandler(e)
{
alert('test');
return false;
}
However as soon as the page loads - all I get is Event is undefined. I thought that Event.CLICK above was simply a constant indicating the type of event to trap?
Any light anyone could shed on this would be really appreciated.
Thanks
As far as I know the following code should work:
window.captureEvents (Event.CLICK|Event.FOCUS);
window.onclick=myHandler;
window.onfocus=HandleFocus;
function myHandler(e)
{
alert('test');
return false;
}
However as soon as the page loads - all I get is Event is undefined. I thought that Event.CLICK above was simply a constant indicating the type of event to trap?
Any light anyone could shed on this would be really appreciated.
Thanks