รูปแบบวัตถุเอกสาร IE4 (DOM) นี้เปิดตัวในเวอร์ชัน 4 ของเบราว์เซอร์ Internet Explorer ของ Microsoft IE 5 และเวอร์ชันที่ใหม่กว่านั้นรองรับคุณสมบัติ W3C DOM พื้นฐานส่วนใหญ่
ตัวอย่าง
ในการเข้าถึงคุณสมบัติของเอกสารโดยใช้วิธี W3C DOM คุณสามารถลองใช้รหัสต่อไปนี้ -
<html>
<head>
<title> Document Title </title>
<script type="text/javascript">
<!--
function myFunc() {
var ret = document.getElementsByTagName("title");
alert("Document Title : " + ret[0].text );
var ret = document.getElementById("heading");
alert(ret.innerHTML );
}
//-->
</script>
</head>
<body>
<h1 id="heading">This is main title</h1>
<p>Click the following to see the result:</p>
<form id="form1" name="FirstForm">
<input type = "button" value = "Click Me" onclick = "myFunc();" />
<input type = "button" value = "Cancel">
</form>
<form d="form2" name="SecondForm">
<input type = "button" value = "Don't ClickMe"/>
</form>
</body>
</html>