HTML | ontoggle Event Attribute
The ontoggle event is triggered when the user open or close the <details> element. The <details> element is used to provide additional information/details that user can view or hide details according to requirement.
<details ontoggle = "script">
Attribute Value: This attribute contains single value script which works when ontoggle event call.
Note: This Attribute works with details tag.
Supported Browser: The browser supported by ontoggle event attribute are listed below:
- Google Chrome 12.0
- Opera 15.0
- Firefox 48.0
- Safari 6.0
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.