How to determine the number of iframes on a page? Please provide some pointers. Thanks in advance.
document.getElementsByTagName("iframe").length
Thanks everyone. I got an answer.
document.frames.length OR document.getElementsByTagName ("IFrame"). Length
var iframes = document.getElementsByTagName('iframe'); alert(iframes);
Note. This will not grab inner / nested frames.
document.frames.length will also work. Unfortunately, this property is only available in Internet Explorer.
document.frames.length