Returns the number of frames (either <frame> or <iframe> elements) in the window.
<frame>
<iframe>
A number.
if (window.length) { // this is a document with subframes }