document.all【IE】

document.all[]是文档中所有标签组成的一个数组变量,包括了文档对象中所有元素.

IE's document.all collection exposes all document elements.This array provides access to every element in the document.
document.all[]这个数组可以访问文档中所有元素。

function fnNavigate()
{
    for(i=0;i<document.all.length;i++)
    {
        if(document.all(i).tagName=="IFRAME")
        {
            document.all(i).contentWindow.location = "http://www.msn.com";
        }
    }	
}
posted @ 2011-09-21 14:26  wkylin  阅读(241)  评论(0编辑  收藏  举报