HTML DOM Details Objects
Details Object
Details object represents an HTML <details> element.
Object Access Details
You can use getElementById () to access the <details> element:
var
x = document.getElementById("myDetails");
尝试一下
Create a Details Object
You can create a <details> element by using the document.createElement () method:
var x = document.createElement("DETAILS");
尝试一下
Details Object Properties
属性 | 描述 |
---|---|
open | 设置或者返回 details 标签内的描述信息是否显示。 |
Standard properties and events
Details of the object also supports the standard attributes and events .
related articles
HTML Reference Manual: HTML <Details> tag