How to get the number of the current page frame (ie, the number of iframe and frame)

Requires window.length, or window.frames.length;

If the page does not contain frame and iframe elements, 0 is returned;

window.length === window.frames.length; // true

 

Guess you like

Origin www.cnblogs.com/aisowe/p/11702854.html