iframe 속 querySelector

  • iframe 속 엘리먼트를 탐색해보자
  • contentWindow
exampel.ts
1
2
3
const iframeEl = document.querySelector('iframe#target');

console.log(iframeEl.contentWindow.document.body.querySelectorAll('a'));

참고

Author

chinsung

Posted on

2022-03-07

Updated on

2022-05-15

Licensed under

댓글