开发者

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

开发者 https://www.devze.com 2023-02-07 07:00 出处:网络
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.

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
    });


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."


try $(document).click(........

0

精彩评论

暂无评论...
验证码 换一张
取 消