Can someone explain what the contextmenu attribute in HTML5 does?

前端 未结 6 2011
盖世英雄少女心
盖世英雄少女心 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:32

    The contextmenu attribute refers to the

    element the user agent should render when a context menu is requested by the user (e.g. using the right mouse button or the Menu/Hyper key on modern keyboards.

    You can find an example here.

提交回复
热议问题