Disable Mouse Right Click, Cut, Copy & Paste

Disable Mouse Right Click, Cut, Copy & Paste? Full JavaScript code for disabling mouse right click and disable cut (CTRL+X), copy (CTRL+C) and paste (CTRL+V) from the web page. <script type="text/javascript"> $(document).ready(function () { //Disable cut copy paste $('body').bind('cut copy paste', function (e) { e.preventDefault(); }); //Disable mouse right click $("body").on("contextmenu",function(e){ return false; }); }); … Continue reading Disable Mouse Right Click, Cut, Copy & Paste

DISABLE MOUSE RIGHT CLICK

WANT TO DISABLE MOUSE RIGHT CLICK?? Disable mouse right click will prevent visitors from choosing the cut, copy and paste options. If you want to disable right mouse click for a particular section of a web page, then you can use a selector (#id, .class, etc.) otherwise use body selector for the full page. The following JavaScript … Continue reading DISABLE MOUSE RIGHT CLICK

How To Disable Copying Text On Blogger Blogs?

Want to Disable Copying Text On Blogger Blogs?? Steps to for Blogger (Disable Copying Text): Go to Dashboard > Select the blog where you would like to implement the code Go to Layout > Add a Gadget > Select “HTML/JavaScript gadget” Paste the following code in the box:   <script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script> <script type='text/javascript'> if (typeof … Continue reading How To Disable Copying Text On Blogger Blogs?

How to Change the Current Browser URL

For Update the Current Browser URL, <script> ChangeUrl = function(page, url) {     if (typeof (history.pushState) != "undefined") {      var obj = { Page: page, Url: url };       history.pushState(obj, obj.Page, obj.Url);       $('.breadcrumb-get-a-pro').attr('href', url);     } else {         alert("Browser does not support … Continue reading How to Change the Current Browser URL

Copy Container Text in JavaScript

Copy Container Text in JavaScript <script type="text/javascript"> function myFunction() {   /* Get the text field */   var copyText = document.getElementById("myInput");   /* Select the text field */   copyText.select();   /* Copy the text inside the text field */   document.execCommand("Copy");   /* Alert the copied text */   alert("Copied the text: " … Continue reading Copy Container Text in JavaScript

On Click Copy the text in javascript

On Click Copy the text in javascript $(".copy-mediaUrl").on('click' , function(){      var b = $(this);      var media_id = 'mediaurl-'+ b.data('id');      var $temp = $("<input>");      $("body").append($temp);       $temp.val( $('#'+ media_id).text() ).select();       document.execCommand("copy");       $temp.remove();       alert('Image Link Copied!'); });

TinyMCE URL Conversion Example

relative_urls : false, remove_script_host : false, convert_urls : true, LIKE:: <script> tinymce.init({        selector: '.rte',        height: 500,        theme: 'modern',        plugins: [               'lists link image media',               'searchreplace visualblocks code fullscreen',   … Continue reading TinyMCE URL Conversion Example

Select all Checkbox in Javascript

Select all Checkbox in Javascript:: <script type="text/javascript"> $(document).ready(function(){ $("#checkbx_selectall").on('change', function() { if(this.checked){             $('.__chckbx_select').each(function(){                 this.checked=true;             });         }else{              $('.__chckbx_select').each(function(){                 … Continue reading Select all Checkbox in Javascript