How do I trigger the browser context menu on an element. (As if the user right-clicked)

前端 未结 3 726
野的像风
野的像风 2020-12-04 01:52

I have the need to trigger the opening of the browser (IE, Firefox, Safari, etc) context-menu via javascript. The problem I am trying to solve, is when an overlaid element i

3条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-04 02:19

    Sorry to be the bearer of unfortunate news, but this is impossible to do with Javascript.

提交回复
热议问题