The length property is used to return the number of window frames in the window. We can access each window by its index number. 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.length
Its return is:- number of windows in the current window