備忘録的プログラミングリファレンス

toggle ( ontoggle )イベント

 toggle ( ontoggle )イベントは、<details> エレメントを開くまたは閉じると発生するイベントです。

- ad -

構文(Syntax)

in HTML

<tagelement ontoggle="function()">

in JavaScript

object.ontoggle = function(){ };

object.addEventListener("toggle", script_);

備考(Remarks)

BubblesNo
CancelableNo
InterfaceEvent
Supported HTML Elements<detail>

- ad -