Hosting Solutions
mobile_logo Table of Contents
seal_frontseal_back

frames

The frames property of the Window object returns an Array listing any iframe elements in the document.

Syntaxwindow.frames
<iframe src="example1.html"></iframe> <iframe src="example2.html"></iframe> <iframe src="example3.html"></iframe> <script> var arr = window.frames; document.write("<hr>"+arr.length); arr[0].location = "https://www.developphp.com"; </script>

JavaScript

Properties

bodycalleeclosedcookiedocumentdropEffecteffectAllowedfilesframeElementframeshistoryInfinityinnerHeightinnerHTMLinnerWidthlengthlocationlocationbarnameNaNnavigatornullopenerouterHeightparentprototypescreenstatetextContentundefined