Update: IE6 context menu solution

Published 8.17.2006 by ~mattg

If you don’t remember, see this.

The solution to this was actually pretty simple. Apparently, just return false is insufficient to tell IE to not show the context menu. I had to use oncontextmenu as follows:

oncontextmenu=‘event.cancelBubble = true; event.returnValue = false; return false;’

Putting that code as an attribute in the body tag disabled all the default contextmenus, while still allowing our custom menus to display.

.

Filed under Web Development

Comments (0)

Comments RSS - Trackback - Write Comment

No comments yet

Write Comment