当 <details> 元素在打开或关闭时执行 JavaScript:<details ontoggle="myFunction()">
当 <menu> 元素在上下文菜单显示时执行 JavaScript:<div contextmenu="mymenu"> <p>Right-c
该事件通过或者从对象(WebSocket, Web Worker, Event Source 或者子 frame 或父窗口)接收到消息时触发