How can i bind an event to an element inside a local iframe?

前端 未结 2 1398
南方客
南方客 2020-12-21 16:17

Firstly both the parent page and the iframe are hosted on the same server (my localhost on WAMP) so same origin policy should not be an issue here.

I can\'t get the

2条回答
  •  悲哀的现实
    2020-12-21 17:04

    I'm not sure the browser's going to propagate a "click" event from the window context of the