Disable Click

Disable right click on particular element like textbox, text area

Alex
March 31, 2020

You may require the code to disable right click in any webpage.

Then just place the below simple code.

oncontextmenu=”return false;”

Examples:

1) Don’t want right click on whole web, place it in “body” tag.

2) Don’t want right click on particular element like textbox, text area place the code in that element

Concept Infoway is a leading Microsoft Certified Offshore Development Company. In business since the year 2000, we serve as a one-stop offshore development center for all our clients’ IT needs. Whether it is Microsoft technology-based development, Open Source technology-based development, mobile app development, internet marketing, quality assurance, or Managed IT Services (MITS), businesses can rely on us for the best and budget-friendly solutions.

Talk to Our Experts! Drop Your Contact Details
and we will get back to you asap.
Recent News Post
5 Reasons for iPhone App Development for Business
Oct4

5 Reasons for iPhone App Development for Business

Organizations, companies and businesses are always looking for superior market presence, along with effective business practices that can...
View More
A Brief on Android App Development
Jan20

A Brief on Android App Development

Initially developed by Android Inc., later backed and bought by Google, Android is an excellent mobile operating system....
View More