contextmenu-key2.html   [plain text]


<div oncontextmenu="contextmenu(event)">
Select some text in the contenteditable below and press the context menu key
(or shift+F10).  The browser should not crash.
<div contenteditable id="a">
<p>|content editable|</p>
</div>
After content editable.
</div>
<script>
function contextmenu(event) {
  document.getElementById("a").style.visibility = "hidden";
}
</script>