Home > Software engineering >  How can arbitrary JS request locked mode? (Chromebook)
How can arbitrary JS request locked mode? (Chromebook)

Time:01-10

Google Forms can enter locked mode on managed Chromebooks to lock the user into the test. I'm trying to accomplish the same functionality - lock the managed Chromebook user into the test, preventing them from opening tabs, using bookmarks, copy/paste, etc. This is impossible by regular JavaScript, but I can guarantee that the only people who will use my website are people using managed Chromebooks.

If it exists, what JavaScript/Google API do I need to take advantage of to request the user's Chromebook to enter locked mode (and how do I use it)?

CodePudding user response:

It is not possible to use JavaScript or any other client-side language to enter locked mode on a managed Chromebook. Locked mode is a feature that is controlled by the administrator of the device and can only be enabled or disabled by the administrator through the Chrome Device Management console.

If you are trying to create a test or quiz that requires users to focus on a single task, you can use techniques such as disabling the right-click context menu and the ability to open new tabs or windows, or using a full-screen mode to prevent users from accessing other parts of the browser. However, these techniques will not prevent users from accessing other apps or functions on their device, such as the operating system's task manager or system settings.

If you want to create a more secure testing environment, you might consider using a dedicated testing platform that provides more control over the user's environment. Some options you might consider include ExamSoft, Examplify, or ProctorU. These platforms provide more advanced security measures, such as monitoring the user's device for suspicious activity and disabling certain features or applications during the test.

  • Related