Center for Online Learning


Warning: include(../../../printEmail.php) [function.include]: failed to open stream: No such file or directory in /dept/etc/public_html/online/gaview/faculty/tutorials/tutorial-printing.php on line 16

Warning: include() [function.include]: Failed opening '../../../printEmail.php' for inclusion (include_path='.:/php/includes:/apache/pear') in /dept/etc/public_html/online/gaview/faculty/tutorials/tutorial-printing.php on line 16

GeorgiaVIEW - Disable right-click on Quizzes

Ever wanted to stop your students from printing out a quiz while they were taking it? This simple script will stop them from doing so. Keep in mind that this only works while a student is in a quiz, it does not work once students have completed the quiz and are viewing their results.

Simply copy and paste the below text into the 'Custom Instructions' portion on a quiz (located on the Properties page) and the student will be unable to utilize the right-click button on their mouse.

<STYLE media="print">BODY {display:none}</STYLE>
<BODY ondragstart="return false" onselectstart="return false">
<script language=JavaScript>
<!--

var message="Function Disabled!";
//
function clickIE() {if (document.all) {alert(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {alert(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// -->
</script>


Warning: include(../../../cgi-bin/analytics.php) [function.include]: failed to open stream: No such file or directory in /dept/etc/public_html/online/gaview/faculty/tutorials/tutorial-printing.php on line 43

Warning: include() [function.include]: Failed opening '../../../cgi-bin/analytics.php' for inclusion (include_path='.:/php/includes:/apache/pear') in /dept/etc/public_html/online/gaview/faculty/tutorials/tutorial-printing.php on line 43