Click here to Skip to main content
15,891,567 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
for online examination when user clicks on start exam the page should be displayed in full screen size(F11) and should not exit full screen and the keyboard controls should not work. is it possible with javascript? if yes, please let me know how it is possible...
Posted
Updated 24-Aug-15 0:45am
v2

1 solution

There is an experimental full-screen API, but it's not consistent between browsers:
http://caniuse.com/#feat=fullscreen[^]

There's a project on GitHub which attempts to hide these changes behind a consistent API:
https://github.com/sindresorhus/screenfull.js/[^]

However, this API will NOT allow you to enter full-screen mode without user interaction, and it will NOT prevent the user from exiting full-screen mode. And that's a good thing. If a random website was able to take over your entire screen, and prevent you from accessing anything else on your computer, that would be a major security problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900