how to disable right click, f12(debug) and ctrl+s in asp.net application using javascript or jquery

前端 未结 4 1224
抹茶落季
抹茶落季 2021-01-29 12:42

how to disable right click, f12(debug) and ctrl+s in asp.net application using javascript or jquery.. Have to black ctrl+s --> Do not allow to save the page Have to black f12

4条回答
  •  礼貌的吻别
    2021-01-29 13:23

    There are some legitimate reasons for this functionality. We are doing web-based testing in a school district and we have to provide a reasonable assurance that students will not be able to find the source file of a test and download it or email it to themselves during the test. For that reason we have to disable right click and do everything we can to ensure that F12 and Ctrl U does not work. School districts with minimal budgets have no choice but to rely on these tricks to help get more done with less.

提交回复
热议问题