How to de we calculate the number of iframes in a page? Please provide some pointers. Thanks in advance.
Thanks Marius for the quick help.
                  archana roy
                   2009-09-21 03:01:27
                
                
                A: 
                
                
              var iframes = document.getElementsByTagName('iframe');
alert(iframes);
Note: This will not grab inner/nested iframes.
                  meder
                   2009-09-21 02:53:59
                
              
                
                A: 
                
                
              document.frames.length will also work.  Unfortunately, this property is only available within Internet Explorer.
                  David Andres
                   2009-09-21 02:56:46
                
              @archana joy: No problem, just please be careful with respect to cross browser issues as reported in this answer.
                  David Andres
                   2009-09-21 03:02:17
                
                
                A: 
                
                
              
            Thanks all.I got the answer.
document.frames.length OR document.getElementsByTagName("iframe").length
                  archana roy
                   2009-09-21 04:06:03