{"id":3223,"date":"2012-02-15T18:07:00","date_gmt":"2012-02-15T18:07:00","guid":{"rendered":"https:\/\/wiki.melberi.com\/uncategorized\/how-to-disable-right-click-on-blogger-blogspot-and-wordpress-websites-using-java-script"},"modified":"2018-08-17T10:28:04","modified_gmt":"2018-08-17T10:28:04","slug":"blogger-disable-right-click","status":"publish","type":"post","link":"https:\/\/www.melberi.com\/wiki\/blogger\/blogger-disable-right-click","title":{"rendered":"How to Disable Right Click On Blogger Blogspot using Java Script"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<h2><span style=\"font-size: large;\"><u><b>How to Disable Right Click On Blogger and WordPress using Java Script<\/b><\/u><\/span><\/h2>\n<p>Using one of the below mentioned java script, you can disable the Mouse Right Click option on your blog \/ Web Pages.<\/p>\n<h3><u><b>For Blogger BlogSpot:<\/b><\/u><\/h3>\n<p>1. Go to your blogger <b>Dashboard -&gt; Template -&gt; Add a Gadget -&gt; HTML\/JavaScript<\/b><br \/>\n2. Paste one of the below code and save the Gadget ( No need to mention any title)<\/p>\n<div style=\"clear: both; text-align: center;\"><a style=\"margin-left: 1em; margin-right: 1em;\" href=\"http:\/\/2.bp.blogspot.com\/-j3fMk-O_9Pk\/UXYq0UEfvUI\/AAAAAAAAAXc\/OhYs4TtsZ38\/s1600\/Disable+Right+Click+in+Blogger+Blogspot+Javs+Script.JPG\"><img loading=\"lazy\" decoding=\"async\" title=\"Disable Right Click in Blogger\" src=\"http:\/\/2.bp.blogspot.com\/-j3fMk-O_9Pk\/UXYq0UEfvUI\/AAAAAAAAAXc\/OhYs4TtsZ38\/s1600\/Disable+Right+Click+in+Blogger+Blogspot+Javs+Script.JPG\" alt=\"Disable Right Click in Blogger\" width=\"400\" height=\"342\" border=\"0\" \/><\/a><\/div>\n<h3><u><b>How to Disable Right Click On WordPress:<\/b><\/u><\/h3>\n<p>Log-in to WordPress Dashboard<br \/>\nGo to<b> Appearance -&gt; Widgets -&gt; Add new Text Widget<\/b><br \/>\nPast one of the below code and save the Widget as shown below.<\/p>\n<div style=\"clear: both; text-align: center;\"><a style=\"margin-left: 1em; margin-right: 1em;\" href=\"http:\/\/1.bp.blogspot.com\/-s3rwuNMOMxk\/UXYq0QZL68I\/AAAAAAAAAXY\/IyG_DX3a4Ww\/s1600\/Disable+Right+Click+in+Wordpress+Javs+Script.JPG\"><img loading=\"lazy\" decoding=\"async\" title=\"wordpress Disable Right Click\" src=\"http:\/\/1.bp.blogspot.com\/-s3rwuNMOMxk\/UXYq0QZL68I\/AAAAAAAAAXY\/IyG_DX3a4Ww\/s1600\/Disable+Right+Click+in+Wordpress+Javs+Script.JPG\" alt=\"wordpress Disable Right Click\" width=\"400\" height=\"380\" border=\"0\" \/><\/a><\/div>\n<h4><u><b>Disable Mouse Right Click Java Script (Without Alert Message):<\/b><\/u><\/h4>\n<\/div>\n<pre>&lt;script language=JavaScript&gt;&lt;!-- \/\/Disable right mouse click Script - No alert \/\/ http:\/\/nxwiki.blogspot.com var message=\"\"; function clickIE() {if (document.all) {(message);return false;}} function clickNS(e) {if (document.layers||(document.getElementById&amp;&amp;!document.all)) { if (e.which==2||e.which==3) {(message);return false;}}} if (document.layers) {document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;} else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;} document.oncontextmenu=new Function(\"return false\") \/\/ --&gt;&lt;\/script&gt;<\/pre>\n<div dir=\"ltr\" style=\"text-align: left;\">\n<h4><u><b>Disable Mouse Right Click Script (With Alert Message):<\/b><\/u><\/h4>\n<\/div>\n<pre>&lt;script language=JavaScript&gt;\/\/Disable right mouse click Script \/\/ http:\/\/nxwiki.blogspot.com var message=\"Right Click Disabled!\"; function clickIE4(){ if (event.button==2){alert(message); return false;}} function clickNS4(e){ if (document.layers||document.getElementById&amp;&amp;!document.all){ if (e.which==2||e.which==3){alert(message); return false;}}} if (document.layers){ document.captureEvents(Event.MOUSEDOWN); document.onmousedown=clickNS4;} else if (document.all&amp;&amp;!document.getElementById){ document.onmousedown=clickIE4;} document.oncontextmenu=new Function(\"alert(message);return false\") \/\/ --&gt;&lt;\/script&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>How to Disable Right Click On Blogger and WordPress using Java Script Using one of the below mentioned java script, you can disable the Mouse Right Click option on your&#8230; <a href=\"https:\/\/www.melberi.com\/wiki\/blogger\/blogger-disable-right-click\">Read more &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1210,1162],"tags":[1601,1632],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/posts\/3223"}],"collection":[{"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/comments?post=3223"}],"version-history":[{"count":3,"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/posts\/3223\/revisions"}],"predecessor-version":[{"id":4601,"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/posts\/3223\/revisions\/4601"}],"wp:attachment":[{"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/media?parent=3223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/categories?post=3223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.melberi.com\/wiki\/wp-json\/wp\/v2\/tags?post=3223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}