4 ms·
Thanks. I've seen custom contextmenus generated on pages[0] that override the built-in context menu but for some reason I've yet to come across a page[1] that
by thebigshane 14y ago
Thanks.
I've seen custom contextmenus generated on pages[0] that override the built-in context menu but for some reason I've yet to come across a page[1] that adds to the existing context menu until today.
[0] replacing example: http://developer.yahoo.com/yui/examples/menu/tablecontextmenu_source.html http://developer.yahoo.com/yui/examples/menu/tablecontextmen...
[1] appending example: https://bug617528.bugzilla.mozilla.org/attachment.cgi?id=554309 https://bug617528.bugzilla.mozilla.org/attachment.cgi?id=554...
- notatoad 14y ago>but for some reason I've yet to come across a page that adds to the existing context menu until today. the reason is likely because browser compatibility for the context menu js api is pretty minimal [1]. firefox can use it on pages that are only going to be displayed in firefox, but for the internet at large it's pretty useless. [1]http://caniuse.com/menu http://caniuse.com/menu
- bpatrianakos 14y agoWhat about Google Docs? Their context menu seems to work cross browser (even on ie9!). Maybe my assumption that they're using HTML5 for this is wrong but if I'm right then what you see on Gdocs is a complete replacement of the regular menu which is pretty cool but also quite annoying for me at times. Please correct me if I'm wrong (which is very likely).
- notatoad 14y agoGoogle docs is not appending stuff to the browser's context menu. they're catching the right-click action and replacing the standard context menu with their own one drawn in HTML.