The frames property is used to return an array with all window objects in the window. We can access it by index numbers and the first index starts from 0. It is a read-only property. We can define a frame as any embedding element like frame, iframe, embed, object, etc.
Its syntax is:- window.frames
Its return is:- array containing all window objects in the current window