Skip to content
Advertisement

Disable new tab button in Browser

enter image description here

Actually i have been creating online examination module using php. but what the requirement is i want to disable opening new tab so the users who are taking online examination will not be able to open new window untill the exam is finished..so that users cannot open new window to avoid cheating by googling

Advertisement

Answer

Best way would be to open a pop up window and load the test in that pop up.

Use window.open() and then you can provide additional parameters. as provided here

That way user will not able to open new tab on that pop up. Also what you can do is close the tab from which new pop up has been opened

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement