Attributes

Introduction

<div id="id1"> <div id="id2">Hello</div> </div>
Hello

Dialog

The expression document.documentElement is used to pass the document into the javascript.

Code

The following is the code for displaying the attributes of a particular element.

src/js/domAttributes.js