JavaScript Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 2.20

Dump Document in a New Window - IE 6.0 Result

This section provides the IE 6.0 result of the tutorial example that dumps the browser built-in 'document' object as an XML message in new browser window by using DOM API attributes and methods.

If you run the JavaScript page, DOM_HTML_Document_Dump.html, in IE 6.0, you will get the "document" XML dump result in a new window:

<#document>
   <html language="" dataFld="" onmouseup="" class="" oncontextmenu=""
      <head language="" dataFld="" onmouseup="" class="" oncontextmenu
         <title language="" dataFld="" onmouseup="" class="" oncontext
         </title>
         <#comment>
             DOM_HTML_Document_Dump.html
   Copyright (c) 2008 by Dr. Herong Yang, http://www.herongyang.com/

         </#comment>
         <script language="" dataFld="" onmouseup="" class="" oncontex
         </script>
      </head>
      <body language="" dataFld="" onmouseup="" class="" oncontextmenu
         <script language="" dataFld="" onmouseup="" class="" oncontex
         </script>
         <p language="" dataFld="" onmouseup="" class="" oncontextmenu
            <#text>
               Click to show document in a new window: 
            </#text>
            <form language="" dataFld="" onmouseup="" class="" onconte
               <input language="" dataFld="" onmouseup="" class="" onc
               </input>
               <#text>
                   
               </#text>
            </form>
         </p>
      </body>
   </html>
</#document>

Several notes about this IE 2.0 result:

  • For each node, IE adds a lots of default attributes, like "language", "dataFld", "onmouseup", "class", "oncontextmenu", etc.
  • Contents of "script" tags are not represented as "nodeValue". This is why script source codes are not included in the output.
  • Line breaks between HTML tags are ignored.

Table of Contents

 About This JavaScript Tutorial Example Book

 Introduction to JavaScript

 ECMAScript Language Specification and JavaScript Dialects

 Data Types, Variables and Expressions

 Flow Control Statements

 Creating, Accessing, and Manipulating Arrays

 Defining and Calling Functions

 Web Browser Supporting JavaScript

 Server-Side and Client-Side Web Scripting

 Introduction to Objects

 Defining Your Own Object Types

 Inheritance of Properties and Methods through the Prototype Object Chain

 'jrunscript' - JavaScript Shell Command from JDK

 Using Functions as "Function" Objects

 Introduction to Built-in Object Types

W3C's Document Object Model (DOM) Specifications

 Overview of DOM Specifications

 DOM Level 0 - Example

 DOM Level 1 - Example

 DOM Level 2 - Example

 DOM Level 3 - Example

 DOM Level Test - document.implementation.hasFeature

 Inheritance vs. Flattened Views of the API

 A Web Document as A Tree of Different Interfaces

 A Web Document as A Tree of Nodes

 Dump Document in a New Window - JavaScript Source

 Dump Document in a New Window - FireFox 2.0 Result

Dump Document in a New Window - IE 6.0 Result

 References

 PDF Printing Version

Dr. Herong Yang, updated in 2008
Dump Document in a New Window - IE 6.0 Result