Home > other >  Online exam how to test whether students use the Internet search problem?
Online exam how to test whether students use the Internet search problem?

Time:11-29

Online exam, the teacher gave us to show students out of the current test page number, exit the page number is equivalent to represent to leave the current page to open the baidu search page related questions, this is to belong to the jQuery event data statistics the mouse? Or belong to other technologies? Can speak in detail about it? Thank you bosses,

CodePudding user response:

Browser basic attributes can be monitored,


Through the browser can monitor whether minimize or whether to switch to other page:
 
Document. The addEventListener (' visibilitychange ', function () {
Var isHidden=document. Hidden;
If (isHidden) {
Alert (" your browser minimizes the, you cheated on ");
}
});


Through add events to the body can monitor to see if there is other software pop-up box, such as QQ pop-up box, youdao dictionary, such as:
 
<script>
Document. The addEventListener (' visibilitychange ', function () {
Var isHidden=document. Hidden;
If (isHidden) {
Alert (" your browser minimizes the, you cheated on ");
}
});

The function (aa) {
Alert (" do you have other software pop up ");
}
</script>
<body onblur="aa ()" & gt;

  • Related