Mobile page long press to appear copy, search, share, etc. A small black box

Mobile page long press to appear copy, search, share and so on a small black box, here is a long button can appear such a thing, what is the way js can trigger such a copy, search, sharing and so on a small black box?

Mar.03,2021

one is the longpress event that comes with the framework. One is that you can specify a long press time through touchstart. Through this control, if your black box appears or disappears


long press, some browsers should have a default menu button. How to deal with this? For example, there will be a big explosion in the UC browser and a copy menu will appear in QQ Browser.

Menu