Adding to browser context menu?

前端 未结 5 1749
礼貌的吻别
礼貌的吻别 2020-12-12 14:29

Is it possible to add item to the default browser right button click menu?

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-12 15:01

    You could suppress the default browser menu and add your own ... Pure JS and css solution for a truly dynamic right click context menu, albeit based on pre-defined naming conventions for the elements id, links etc. jsfiddle and the code you could copy paste into a single static html page :

         
         
            
         
    
         
    
               
               right click link-01
               right click link-02
    
               
               
               
    
            
         
         
    

提交回复
热议问题