# iframe 内の DOM にアクセス ```js const iframe = document.querySelector('.iframe') const element = iframe.contentWindow.document.querySelector('.content'); ``` Same Origin じゃないと CORS の制約でアクセスできない。