傳統 DOM 是較早期瀏覽器支援的文件物件模型,主要用於存取表單、表單元素與圖片等常見文件部分。
它提供 document.title、document.URL、document.forms、document.images 等屬性,方便快速取得文件的基本資訊或常用集合。



var title = document.title; var url = document.URL; var firstForm = document.forms[0]; var secondElement = document.forms[0].elements[1];
雖然傳統 DOM 簡單直覺,但彈性較低,現代開發多已改用 W3C DOM 或更新的 API。