context-click-unfocused-frame.html 601 B

1234567891011121314151617
  1. <frameset cols="*">
  2. <frame src="data:text/html,
  3. <script>
  4. function contextMenu()
  5. {
  6. document.getElementById('result').appendChild(document.createTextNode('PASS'));
  7. }
  8. </script>
  9. <body onmousedown='return false;' oncontextmenu='contextMenu(); return false;'>
  10. <p>
  11. Control-click (Mac) or right-click (Windows) below. The word
  12. %26ldquo;PASS%26rdquo; should appear. A contextual menu should not open.
  13. </p>
  14. <p id='result'></p>
  15. </body>
  16. ">
  17. </frameset>