/

HTML / CSS / JavaScript Tutorial

HTML Event attribute: ontoggle

[this page | pdf | back links]

The HTML ontoggle attribute specifies the event that is triggered when the user opens or closes a <details> element. It applies to <details> elements.

 


NAVIGATION LINKS
Contents | Prev | Next | HTML Attributes


Desktop view | Switch to Mobile