Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

$(window).click in IE doesn't work

Tags:

jquery

Why is it $(window).click doesn't work in IE. It works is all other browsers. (I can't use body or document in my page since something else in the page interferes with it.

$(window).click(function() {
        do stuff
    });
like image 691
meijiOrO Avatar asked Jan 27 '11 19:01

meijiOrO


1 Answers

It is simply not supported in IE.

Here's a compatibility list of browsers' support for the click event.

You'll see that IE does not support it on the window.

I'd be curious to know what you mean when you say "I can't use body or document in my page since something else in the page interferes with it."

like image 90
user113716 Avatar answered Oct 10 '22 08:10

user113716