WebCT -  UMass Amherst - Online Support
[LOG ON]
  Home  |  About WebCT  |  Instructor Resources  |  Student Resources  |  Site Map  

Prevent Students from Printing Hard Copy of Quiz

Adding additional code to quizzes has been suggested as a deterrent to easy printing of quiz question. Depending on the browser and computer used, these additional commands make it more difficult for students to print and save quiz questions.

Adding this code is designed to prevent three things: (a) printing using the "File" "Print command. (The user will only receive a blank page, (b) the selecting and therefore the copying of text with the Edit Copy command, and (c) the ability to right-click and bring up the sub-menu.

Note: This will NOT prevent the "View", "View Source" command. At best it is a deterrent to easy printing of quiz questions, but not foolproof. A student may still be able to view and copy the source, paste it into an HTML editor or save it locally, then view the questions. Or screen-capture, take a picture of their monitor screen, etc. If used in conjunction with the other methods (e.g., timed quizzes, one question at a time), this can make "cheating" on quizzes extremely difficult.

Instructions

1. Copy the code provided below (highlight text with cursor and from the browser file menu, use copy and paste functions):

-------[begin code here]------------
<HEAD>
<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
</HEAD>
<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) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==1||e.which==2||e.which==3) {(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")
function disableselect(e){
return false
}
function reEnable(){
return true
}
document.onselectstart=new Function ("return false")
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
---------[end code here]------------

2. From within the quiz editor section of your course, select 'Edit/Add upper textblock', select go:

3. Paste the code provided into the textblock and select update.

4. After updating student view, be sure to test your quiz as a student.



 LOG ON | Home | About WebCT | Instructor Resources | Student Resources | Site Map

Academic Computing/ OIT    
A209 Lederle GRC Lowrise
Amherst, MA 01003
Phone: (413) 577-0072
webct@oit.umass.edu

Copyright 2002 University of Massachusetts Amherst
This is an official page of the University of Massachusetts Amherst campus.