On 19-Oct-07, at 2:30 AM, Olli Wang wrote:

> Hi, I just tried:
>
> connect(window, 'onclick', function () {alert('test')})
>
> When I click on the window I should get an alert message. But it works
> fine on Fx, Safari and Opera, but not in IE 6 and IE 7. What's wrong
> about this function for IE? Any help would be appreciated.

Olli, try connecting to the document object. That might do what you  
want. So:

connect(document, 'onclick', function () {alert('test')})

Beau


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"MochiKit" group.
To post to this group, send email to mochikit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/mochikit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to