纯JavaScript右键上下文菜单插件 javascript library, to add context menu functionallity to html page

A

This is a demo
Just need to include the files:
  • class2context.js
  • class2context.css

Get started!

Right click over me!
element inside element with diferent class

Use

when html is charged, call the function

Use

when html is charged, call the function:
class2context(
'className',
"title",
[["option1", "functionoption1()"], ["option 2","functionoption2()"]]
);
下载代码说明
X关闭

JS右键上下文菜单class2context插件

class2context是一款非常实用的纯JavaScript右键上下文菜单插件。该右键菜单插件使用简单,性能高,通过简单的js语句即可完成右键菜单的配置。本段代码适应于所有网页使用,有需要的朋友可以直接下载使用,本段代码兼容目前最新的各类主流浏览器,是一款非常优秀的特效源码!