<?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>Using jquery disable right click option &#8211; Sibeesh Passion</title>
	<atom:link href="https://mail.sibeeshpassion.com/tag/using-jquery-disable-right-click-option/feed/" rel="self" type="application/rss+xml" />
	<link>https://mail.sibeeshpassion.com</link>
	<description>My passion towards life</description>
	<lastBuildDate>Wed, 11 Jul 2018 16:29:06 +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>Using jquery disable right click option &#8211; Sibeesh Passion</title>
	<link>https://mail.sibeeshpassion.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to disable right click in a page using JQuery</title>
		<link>https://mail.sibeeshpassion.com/how-to-disable-right-click-in-a-page-using-jquery/</link>
					<comments>https://mail.sibeeshpassion.com/how-to-disable-right-click-in-a-page-using-jquery/#disqus_thread</comments>
		
		<dc:creator><![CDATA[SibeeshVenu]]></dc:creator>
		<pubDate>Thu, 16 Jul 2015 06:34:53 +0000</pubDate>
				<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Disable right click]]></category>
		<category><![CDATA[Disable right click in a page]]></category>
		<category><![CDATA[remove right click]]></category>
		<category><![CDATA[Using jquery disable right click option]]></category>
		<guid isPermaLink="false">http://sibeecst_passion.com/?p=7191</guid>

					<description><![CDATA[Introduction In this post, we will see how we can disable right click option using simple JQuery code. I hope you will like it. Background Most of the developers are always looking for the safety of their images and code blocks which they have shared in the web. But normally it is hard to secure this unless you go for any third party tool. Some of us may think if we just disable the right click option in our page, makes the content secured. But it is not. If some one really thinks that they need to get the content [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><strong>Introduction</strong></p>
<p>In this post, we will see how we can disable right click option using simple JQuery code. I hope you will like it.</p>
<p><strong>Background</strong></p>
<p>Most of the developers are always looking for the safety of their images and code blocks which they have shared in the web. But normally it is hard to secure this unless you go for any third party tool. Some of us may think if we just disable the right click option in our page, makes the content secured. But it is not. If some one really thinks that they need to get the content from your page, they can achieve it. Even though that is the reality, I am sharing this post to show how to disable the right click option 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).ready(function() {<br />
				$(document).on(&quot;contextmenu&quot;,function(e){<br />
				   return false;<br />
				});<br />
			});<br />
		&lt;/script&gt;<br />
[/js]</p>
<p>Here what we did is, whenever user tries to perform right click in the document, we are restricting that. We are applying this restriction to the entire document. And we use <em>contextmenu</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 Right Click Option Demo</a></p>
<p>You can see right click option is not allowed in the demo page. You can always gives an alert also, if a user performs right click.</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://mail.sibeeshpassion.com/how-to-disable-right-click-in-a-page-using-jquery/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
	</channel>
</rss>
