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

153
Views
Prevent or Override Text Copy Popup after Touch Press

I'm trying to prevent the default popup (which includes Copy, etc.) from appearing when touch pressing on text in Chrome and other browsers. Specifically I want to replace this popup with my own commands. I still want the text to be selectable via mouse and touch. In other words:

enter image description here

I can't seem to find any solution that would not completely disable text selection and/or other pointer input.

Handling contextmenu with preventDefault at the window and span level do not work, nor does handling touchend.

Thanks for any suggestions!

Edit: It looks like overriding oncontextmenu works on Mobile Chrome but not Windows Chrome. Other people report this not working on iOS. Is there any general purpose solution that works on all browsers? Thanks!

about 4 years ago · Juan Pablo Isaza
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!