Como obtenho esse elemento html filho em JavaScript?

Eu tenho um iframe que se parece com isso:

<iframe id="iframe2" ...>
    #document
        <html>...</html>
</iframe>

Eu estou tentando pegar o item embaixo doiframe com ohtml tag.
Em JavaScript, quando faço:

document.getElementByID("iframe2")

isso retorna o iframe correto.

No entanto, quando faço isso:

document.getElementByID("iframe2").childNodes

o valor de retorno é[].

document.getElementByID("iframe2").getElementsByTagName("#document") edocument.getElementByID("iframe2").getElementsByTagName("html") também devolver[].

Como faço para acessar essehtml tag?
Além disso, o que é isso#document tag chamado?

questionAnswers(4)

yourAnswerToTheQuestion