Wednesday, October 5, 2022
PHP

How to disable F12 in web

<script type=”text/javascript” language=”JavaScript”>// <![CDATA[
<br /><br />//////////F12 disable code////////////////////////<br /> document.onkeypress = function (event) {<br /> event = (event || window.event);<br /> if (event.keyCode == 123) {<br /> //alert(‘No F-12’);<br /> return false;<br /> }<br /> }<br /> document.onmousedown = function (event) {<br /> event = (event || window.event);<br /> if (event.keyCode == 123) {<br /> //alert(‘No F-keys’);<br /> return false;<br /> }<br /> }<br />document.onkeydown = function (event) {<br /> event = (event || window.event);<br /> if (event.keyCode == 123) {<br /> //alert(‘No F-keys’);<br /> return false;<br /> }<br /> }<br />/////////////////////end///////////////////////<br />
// ]]></script>

(Visited 6 times, 1 visits today)
Klik untuk berbagi dengan orang lain
Baca Juga :  Solusi Mengatasi module Apache Tidak bisa di Start pada XAMPP

Similar Posts