window.length Property in Window Object of Javascript Syntax with Examples
2496 Views
Usage
The length property is used to find number of iframe in current window.
Syntax
window.length;
Syntax
<iframe src="http://www.knowledgewalls.com"></iframe>
<iframe src="http://tools.knowledgewalls.com"></iframe>
var x = window.length;
document.write("<br>Page contains no of iframes: "+x);