Disable right click on particular element like textbox, text area
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.