從IE4開始IE的object model才增加了document.all[],來看看document.all[]的Description: Array of all HTML tags in the document.Collection of all elements contained by the object.
Most third-party browsers are “strict standards” implementations, meaning that they implement W3C and ECMA standards and ignore most of the proprietary object models of Internet Explorer and Netscape.If the demographic for your Web site includes users likely to use less common browsers, such as Linux aficionados, it might be a good idea to avoid IE-specific features and use the W3C DOM instead. by Internet Explorer 6, we see that IE implements significant portions of the W3C DOM.
畢竟大多數(shù)人還不了解標(biāo)準(zhǔn),在使用標(biāo)準(zhǔn)前,你還可以在你的網(wǎng)頁中用document.all[]訪問文檔對象前面寫到WEB標(biāo)準(zhǔn),今天繼續(xù)WEB標(biāo)準(zhǔn)下可以通過getElementById(), getElementsByName(), and getElementsByTagName()訪問DOCUMENT中的任一個標(biāo)簽: