Easy Tutorial
❮ Prop Number Form Prop Number Placeholder ❯

open Attribute of Details

Details Object

Example

Display additional description information:


Definition and Usage

The open attribute is used to set or return whether the information inside the details tag is visible to the user (open).

This attribute reflects the HTML open attribute.

When set to true, the content within the details tag will be visible.


Browser Support

The open attribute is currently only supported by Opera, Chrome, and Safari 6 browsers.


Syntax

Return the open attribute:

Set the open attribute:

Attribute Values

Value Description
true false Specifies whether the details should be visible on the HTML page. true - Description information is visible<br> false - Description information is not visible

Technical Details

| Return Value: | Boolean, returns true if the details tag content is visible, otherwise returns false. | | --- | --- |


More Examples

Example

Check if additional information in the details tag is visible:

x Output result:

Example

Show or hide additional description information:


Details Object

❮ Prop Number Form Prop Number Placeholder ❯