<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Disable F12 key using JQuery &#8211; Sibeesh Passion</title>
	<atom:link href="https://sibeeshpassion.com/tag/disable-f12-key-using-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>https://sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Wed, 11 Jul 2018 16:28:53 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>/wp-content/uploads/2017/04/Sibeesh_Passion_Logo_Small.png</url>
	<title>Disable F12 key using JQuery &#8211; Sibeesh Passion</title>
	<link>https://sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to disable F12 Key in a page using JQuery</title>
		<link>https://sibeeshpassion.com/how-to-disable-f12-key-in-a-page-using-jquery/</link>
					<comments>https://sibeeshpassion.com/how-to-disable-f12-key-in-a-page-using-jquery/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Thu, 16 Jul 2015 07:12:02 +0000</pubDate>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Disable F keys]]></category>
		<category><![CDATA[Disable F12 key using JQuery]]></category>
		<category><![CDATA[How to disable F12 Key in a page]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=7231</guid>

					<description><![CDATA[Introduction In this post, we will see how we can disable F12 Key option using simple JQuery code. I hope you will like it. Background As you know disabling F12 Key option or disable right click in our page, does not makes the content secured. Even though that is the reality, I am sharing this post to show how to disable the F12 Key in page. Using the code We are going to use JQuery for this requirement. So you need to load the JQuery reference first. [js] &#60;script src=&#34;http://sibeeshpassion.com/content/scripts/jquery-1.11.1.min.js&#34;&#62;&#60;/script&#62; [/js] Now we need to add the needful scripts. [js] [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>In this post, we will see how we can disable F12 Key option using simple JQuery code. I hope you will like it.</p>
<p><strong>Background</strong></p>
<p>As you know disabling F12 Key option or <a href="http://sibeeshpassion.com/how-to-disable-right-click-in-a-page-using-jquery/" target="_blank">disable right click</a> in our page, does not makes the content secured. Even though that is the reality, I am sharing this post to show how to disable the F12 Key in page.</p>
<p><strong>Using the code</strong></p>
<p>We are going to use JQuery for this requirement. So you need to load the JQuery reference first.</p>
<p>[js]<br />
&lt;script src=&quot;http://sibeeshpassion.com/content/scripts/jquery-1.11.1.min.js&quot;&gt;&lt;/script&gt;<br />
[/js]</p>
<p>Now we need to add the needful scripts.</p>
<p>[js]<br />
&lt;script&gt;<br />
			document.onkeypress = function (event) {<br />
				event = (event || window.event);<br />
				if (event.keyCode == 123) {<br />
					return false;<br />
				}<br />
			}<br />
			document.onmousedown = function (event) {<br />
				event = (event || window.event);<br />
				if (event.keyCode == 123) {<br />
					return false;<br />
				}<br />
			}<br />
			document.onkeydown = function (event) {<br />
				event = (event || window.event);<br />
				if (event.keyCode == 123) {<br />
					return false;<br />
				}<br />
			}<br />
		&lt;/script&gt;<br />
[/js]</p>
<p>Here what we did is, whenever user press F12 , we are restricting that. We are applying this restriction to the entire document. And we use <em>onkeypress </em>,<em>onmousedown </em>,<em>onkeydown </em> event to do this requirement.</p>
<p>That is all. Everything is done and set. Now you need to see the output and demo right?</p>
<p><strong>Demo</strong></p>
<p>You can see a demo at <a href="http://sibeeshpassion.com/stopwatch/" target="_blank">Disable F12 Option Demo</a></p>
<p>You can see F12 option is not allowed in the demo page. You can always gives an alert also, if a user press F12.</p>
<p><strong>Conclusion</strong></p>
<p>I hope you liked my article. Now please share me your feedback. Thanks in advance.</p>
<p>Kindest Regards<br />
<a href="http://sibeeshpassion.com/" target="_blank">Sibeesh Venu</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://sibeeshpassion.com/how-to-disable-f12-key-in-a-page-using-jquery/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
