contextmenu

Making custom right-click context menus for my web-app

雨燕双飞 提交于 2019-11-26 01:46:23
问题 I\'ve a few websites like google-docs and map-quest that have custom drop down menus when you right-click. Somehow they override the browser\'s behavior of drop-down menu, and I\'m now sure exactly how they do it. I found a jQuery plugin that does this, but I\'m still curious about a few things: How does this work? Is the browser\'s drop-down menu actually being overridden, or is the effect just simulated? If so, how? What does the plugin abstract away? What\'s going on behind the scenes? Is

Making custom right-click context menus for my web-app

浪子不回头ぞ 提交于 2019-11-25 23:58:31
I've a few websites like google-docs and map-quest that have custom drop down menus when you right-click. Somehow they override the browser's behavior of drop-down menu, and I'm now sure exactly how they do it. I found a jQuery plugin that does this, but I'm still curious about a few things: How does this work? Is the browser's drop-down menu actually being overridden, or is the effect just simulated? If so, how? What does the plugin abstract away? What's going on behind the scenes? Is this the only way of achieving this effect? See several custom-context menus in action Francisco Presencia I