namratha
namratha

Reputation: 672

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

Upvotes: 2

Views: 3611

Answers (2)

Try this code to open your new window

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

window.open

Upvotes: 0

Vikas Arora
Vikas Arora

Reputation: 1666

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

Upvotes: 2

Related Questions