JavaScript Window frameElement
JavaScript Window frameElement
The frameElement property is used to return the frame in which the window runs. It returns NULL when the window does not run in the frame. It is a read-only property. We can define a frame as any embedding element like frame, iframe, embed, object, etc.
Syntax:-
Its syntax is:- window.frameElement OR frameElement
Return:-
Its return is:- host object of window else null