This is a demo of a JavaScript function to remember if an HTML <details> element has been opened after you reload the page.
If you open this element and reload the page, this element will stay open.
If you open this element and reload the page, this element will be closed.