getElementById on element within an iframe

前端 未结 4 1157
天命终不由人
天命终不由人 2020-12-05 16:33

My current code works on elements outside of an iframe. How should I approach fetching elements within an iframe using getElementById? My end goal is to write text within th

4条回答
  •  北海茫月
    2020-12-05 17:10

    Explore the sandbox attribute.

    http://www.w3schools.com/tags/att_iframe_sandbox.asp

提交回复
热议问题