javascript – Disable new tab button in Browser-ThrowExceptions

Exception or error:

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 that users cannot open new window to avoid cheating by googling

How to solve:

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

Use 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


Try this code to open your new window

function OpenPopUpwindow(){'your url','popUpWindow','fullscreen=yes, resizable=no,scrollbars=yes
            , toolbar=no, menubar=no, location=no, directories=no
            , status=no');

Leave a Reply

Your email address will not be published. Required fields are marked *