Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

690
Views
Prevent context menu in Edge when text is selected

In its recent version, Edge shows a context menu when selecting text. Is there any way to prevent this behaviour with JavaScript? I tried window.oncontextmenu = e => {e.preventDefault();}; but this wasn't successful.enter image description here

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

If you don't need to use this feature in Edge, you can disable this menu via specific setting in Edge.

Just follow these steps:

  1. Naviagte to edge://settings/appearance in Edge.
  2. Scroll down the page to the Context menus section.
  3. Disable the option Show mini menu when selecting text.

Something like this:

enter image description here

In addition, you can also disable this feature on specific sites, depending on your needs.

about 4 years ago · Juan Pablo Isaza Report

0

window.onmouseup = event => event.preventDefault();
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!