Knowledge Walls
Laya
Hyderabad, Andhra Pradesh, India
window.length Property in Window Object of Javascript Syntax with Examples
2526 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);
Output 
Page contains no of iframes: 2
Best Lessons of "Javascript Syntax with Examples"
Top lessons which are viewed more times.
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details