Disable Print/Copy in Vista Assessments

Note: These steps do not prevent students from pressing Alt+PrintScreen to copy the window and paste into another software application.

  1. If you are delivering assessments one question at a time,
    In a Vista assessment, you can copy/paste the following code into every assessment questions to prevent students from printing or copying the questions. Save [button] the question.

  2. If you are delivering assessments all questions at a time,
    In a Vista assessment, you can copy/paste the following code into one of the assessment questions to prevent students from printing or copying the questions. Save [button] the question.

<script language="JavaScript1.2">
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
//if Mozilla
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script>
<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>
 

Last updated Thursday, September 06, 2007 03:14:39 PM