I would like to get the "window" object of the iframe.

If there is no "name" attribute in the iframe tag, we have to use the following script:
window.frames[0].window
But I think the code "window.frames[0].window" is not good for understanding.

So I use the following script:
window.frames['iframe-contacts'].window