<!doctype html>
<html>
<body>
  <div id="foo" style="color: white;">Some text</div>
  <iframe src="iframe2.html"></iframe>
  <script>
    console.log(document.querySelector('#foo'));
  </script>
</body>
</html>

