frameElement

The Window.frameElement property returns the element (such as iframe or object) in which the window is embedded.

MDN Reference