Detecting Click Inside IFrame Using Invisible div

前端 未结 3 1454
灰色年华
灰色年华 2020-12-11 07:51

I went through this post. Detect Click into Iframe using JavaScript

But still, I see people have done similar stuff. Please tell me how do I do this.

One dev

3条回答
  •  半阙折子戏
    2020-12-11 08:22

    Check out Jquery's .live method.

    It can attach an event handler to a selector now and in the future, such as when content is loaded into a div.

    http://api.jquery.com/live/

提交回复
热议问题