ontoggle 事件
描述
當用戶開啟或關閉 <details> 元素時,會發生 ontoggle 事件。
The <details> element specifies additional details that the user can view or hide on demand. ( 元素指定使用者可以按需檢視或隱藏的附加詳細資訊。)
瀏覽器支援
表格中的數字指定了完全支援該事件的第一個瀏覽器版本。
事件 | |||||
---|---|---|---|---|---|
ontoggle | 12.0 | 79.0 | 48.0 | 6.0 | 15.0 |
語法
技術詳情
冒泡 | 否 |
---|---|
可取消 | 否 |
事件型別 | 事件 |
HTML 標籤 | <details> |
DOM 版本 | Level 3 Events |