June 12, 2026

Anti-Cheat Quiz Software: Tab Switch Detection & Fullscreen

TL;DR

  • Tab switch detection flags when a student leaves the quiz window.
  • Fullscreen lock prevents opening other apps during the quiz.
  • Screen guarding blocks copy-paste and right-click actions.
  • No single anti-cheat measure is completely foolproof.
  • Combining multiple layers stops most common cheating attempts.

Quiz platforms like Quizava listen for these events the moment the quiz starts. If the student switches tabs, the system logs the event, increments a warning counter, and can even auto-submit the quiz after a configurable number of violations.

An Analogy

Think of tab switch detection as a proctor standing at the classroom door. The proctor does not follow the student into the hallway — they just note every time the student leaves the room and for how long. Three or four exits without a good reason? That is a red flag.

What Educators Should Know

  • It is not 100% reliable. A student using a second physical device (phone, tablet) will not trigger tab switches on the quiz device. To prevent cheating in online exams comprehensively, combine tab detection with other proctoring methods.
  • False positives can happen. Accidental clicks, notifications, or browser crashes may log a switch. Always review warnings in context.
  • Configurable thresholds matter. Set 2–3 allowed switches before flagging, and 4–5 before auto-submit, to avoid penalizing accidental tab loss.

How Fullscreen Lock Enforcement Prevents Cheating

Tab switch detection catches students who leave the quiz window, but what about students who keep the quiz open while peeking at another application on the same screen? That is where fullscreen lock comes in — and it is far more powerful than many educators realize.

The Technical Mechanism

Fullscreen lock uses the Fullscreen API (element.requestFullscreen()) to force the quiz to occupy the entire screen. While in fullscreen mode:

  • The browser hides its address bar, bookmarks bar, and any other UI elements.
  • The system taskbar or dock is hidden (unless the user moves the mouse to the edge).
  • Most keyboard shortcuts (like Alt+Tab, Windows key, Cmd+Tab) are suppressed by the quiz software using keyboard event interception.

Quizava monitors for fullscreen-exit events. If the student exits fullscreen (e.g., presses Esc or uses a gesture), the system logs it as a violation — similar to a tab switch. The quiz can even be configured to automatically pause or submit if fullscreen is lost.

An Analogy

Fullscreen lock is like locking the classroom door and sealing the windows. The student can still see the board, but they cannot step outside or look at something else on their desk without breaking the seal.

Limitations

  • Second-device bypass: Just like tab switching, a student with a phone can look up answers while the quiz runs in fullscreen. Fullscreen lock does not prevent this.
  • User permission needed: Browsers require a user gesture (like a click) to initiate fullscreen. The quiz must start with a deliberate click, not automatically.
  • Browser quirks: Some browsers (especially older versions of Safari) have inconsistent fullscreen support. Always test on target browsers.

How Screen Guarding Blocks Copy, Paste, and Print

Tab switches and fullscreen exits are behavioral signals, but screen guarding is a direct technical barrier that blocks common cheating actions during the quiz.

What Screen Guarding Covers

A comprehensive secure assessment platform like Quizava implements multiple screen guards simultaneously:

  • Keyboard suppression: Prevents Ctrl+C, Ctrl+V, Ctrl+P, and other keyboard shortcuts that could be used to copy questions or paste answers.
  • Right-click blocking: The context menu is disabled so students cannot “Inspect Element” or save images of questions.
  • Print screen blocking: While browsers cannot fully prevent a screenshot, Quizava overlays a warning message when a screenshot is detected and can log the attempt.
  • Text selection disabling: Prevents students from highlighting and copying text within the quiz.

The Technical Mechanism

Screen guarding is implemented through a combination of JavaScript event listeners and CSS properties:

  • document.addEventListener('keydown', handler) to intercept and prevent specific key combinations.
  • document.addEventListener('contextmenu', handler) to block right-click.
  • CSS user-select: none on the quiz body to disable text selection.

Limitations

  • Cannot stop camera-based copying. A student could take a photo of the screen with a phone. Screen guarding only prevents digital copy/paste.
  • Accessibility conflicts: Keyboard suppression can interfere with screen readers and other assistive technologies. Quizava’s keyboard suppression has an accessibility override toggle for students with documented needs.

Putting It All Together: Layered Anti-Cheat in Quizava

No single anti-cheat layer is perfect. But when combined, they create a formidable deterrent. Quizava’s anti-cheat quiz software uses all three defenses in tandem:

  • Tab switch detection flags students who leave the quiz window.
  • Fullscreen lock prevents on-device multitasking.
  • Screen guarding blocks digital shortcuts for copying and printing.

This layered approach is why Quizava is trusted by thousands of educators to maintain online quiz integrity and prevent cheating in online exams. You can configure the strictness of each layer individually — from lenient (warnings only) to strict (auto-submit after one violation) — to match the stakes of your assessment.

Practical Configuration Tips for Educators

  1. Start lenient for low-stakes practice. Use tab switch detection with 3 allowed switches and no auto-submit. This builds student trust in the tool.
  2. Increase strictness for high-stakes exams. Enable fullscreen lock, set tab switches to 1 allowed switch, and enable auto-submit after the second violation.
  3. Communicate the rules beforehand. Show students a brief demo of what happens when they try to switch tabs or exit fullscreen. Transparency reduces cheating attempts.
  4. Combine with question randomization to make answer-sharing less effective. Quizava shuffles both question order and answer choices per participant.
  5. Review the logs after the quiz. Tab switch and fullscreen exit logs give you evidence to discuss with individual students if needed.

Ready to protect your quizzes with industry-leading anti-cheat technology?

Quizava is a secure assessment platform designed for educators who value academic integrity. Start creating your first AI-powered, anti-cheat quiz free at quizava.com.

 

Subscribe to the newsletter

Get latest blog posts right in your inbox

Leave A Comment

  • AI Quiz Maker for Accreditation: Collect Program Evaluation

  • AI Quiz Maker for Professional Development

  • Student-Generated Quizzes: Peer Assessment with AI