minitick
  • HTML
    • Bootstrap
  • PHP
  • jQuery
  • HTACCESS
  • CMS
    • Wordpress
      • Themes
      • Plugins
    • Opencart
    • Magento
    • Joomla
  • Web
    • HTTP Server
      • Apache
      • IIS
      • Nginx
    • Web Server
      • Centos
      • Debian
      • Linux
      • Ubuntu
      • Windows
  • Other
    • Python
    • CSS
    • Ajax
    • SEO

Disable Right Click Using jQuery

  • Home
  • jQuery
  • Disable Right Click Using jQuery
  • CCDSIU
  • 2020-07-24
  • jQuery
Disable Right Click Using jQuery

Disable Right Click Using jQuery

Disabling right click from the web pages using jQuery can be done using simple tweak.

Just paste the below code into the document and it's done

$(document).ready(function(){
 $(document).bind("contextmenu",function(e){
   return false;
 });
});

jquery,Right Click

Comments for this post

Latest Posts

  • Configuration of Yii2 Advanced setup for single domain
  • Add new line in php command line or terminal
  • Checking If GCC Compiler is installed?
  • Check OS version in Linux Command line/Terminal
  • Get domain name from url in php
  • Yii2 add javascript to view file
  • Remove Visual Editor Mode in WordPress
  • Stop Google from Crawling a WordPress Website
  • Opencart : Send SMS Notification to Customer after placing order?
  • Reset/Recover a Lost WordPress password
  • Turn Off Comments Notifications in WordPress Dashboard
  • Install Google Analytics in WordPress
  • Reset a Lost WordPress password from phpMyAdmin
  • How to change the WordPress username ?
  • WordPress : Find your WordPress Database
  • Character Count Online
  • Word Count Online
  • Add a new navigation menu in WordPress theme
  • How to add / register a new sidebar in WordPress ?
  • How to get WordPress post thumbnail of single post ?
Maintained by Minitick