Can someone explain what the contextmenu attribute in HTML5 does?

前端 未结 6 2018
盖世英雄少女心
盖世英雄少女心 2021-01-12 18:07

can someone explain what the the contextmenu attribute does and if it can be used with all the HTML elements and can someone point me to some online demos/examples?

6条回答
  •  失恋的感觉
    2021-01-12 18:51

    The context menu appears when the user right-clicks on an interface element. The contextmenu attribute is the ID of a

    element to open when the user right clicks on the element with this attribute.

提交回复
热议问题