In the quiz settings, if you set the Browser security to ''Full screen pop-up with some JavaScript security": (from the tooltip)
- The quiz will only start if the student has a JavaScript-enabled web-browser
- The quiz appears in a full screen popup window that covers all the other windows and has no navigation controls
- Students are prevented, as far as is possible, from using facilities like copy and paste
That is:
- Students can not copy using the mouse, that is, they can not select any part of the text
- Right mouse click is disabled
- The browser menu is disabled
- The Ctrl-X, Ctrl-C and Ctrl-V keystrokes are disabled
If you also want to discourage students from checking the source code of the quiz page, you can disable the F12 key and the Ctrl-U, Ctrl-Shift-I and Ctrl-Shift-J keystrokes by placing the following script in the HTML code of the question text:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> <script> $(document).ready(function(){ $(document).keydown(function (event) { // Prevent F12 if (event.keyCode == 123) { return false; // Prevent Ctrl+U } else if (event.ctrlKey && event.keyCode == 85) { return false; // Prevent Ctrl+Shift+I } else if (event.ctrlKey && event.shiftKey && event.keyCode == 73) { return false; // Prevent Ctrl+Shift+J } else if (event.ctrlKey && event.shiftKey && event.keyCode == 74) { return false; } }); }); </script>
The above script works in Chrome. I did not check with other browsers.