document.elementFromPoint(x,y) to get element inside iframe

前端 未结 2 554
渐次进展
渐次进展 2021-01-21 16:16

I am trying to get elements in html page, i use document.elementFromPoint(x,y) to detect input elements; it works fine when there are no iframes. But inside iframes it does not

2条回答
  •  无人共我
    2021-01-21 16:58

    If your iframe is not on the same domain as your website, you won't be able to select tags using jquery/javascript

提交回复
热议问题