HTML DOM Summary Object

Summary object

The Summary object represents the HTML <summary> element.

Note:Currently only Chrome, Safari 6+ and Opera 15+ support the <summary> element.

Access the Summary object

You can use getElementById() to access the <summary> element:

var x = document.getElementById("mySummary");

Try It Yourself

Create a Summary object

You can use the document.createElement() method to create a <summary> element:

var x = document.createElement("SUMMARY");

Try It Yourself

Standard Properties and Events

The Summary Object Supports StandardsPropertiesAndEvents.

Related Pages

HTML Reference Manual:HTML <summary> Tag

HTML Reference Manual:HTML <details> Tag

JavaScript Reference Manual:HTML DOM Details Object