javascript - What is the global length variable (window.length)? -


I have just seen that every page has length global variable.

What does this variable represent? Is it related in some way that how many iframes / frames are loaded on the page?

This will be a doctor happy to provide references. For example, the new tab page on Chrome has its value of 17 and here it is 0 on the stack overflow.

Yes, how many frames it contains (including iframe) are in the current window:

W3 specification:


Comments