<iframe src="/" style="height:80px" name="win" id="iframe"></iframe>
<script>
alert(iframe.contentWindow == frames[0]); // true
alert(iframe.contentWindow == frames.win); // true
</script>
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.