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

139
Views
HTML-JavaScript Video disable controls but on double click do function

I have a video tag with controls like:

<video id="prevVideo" class="mx-auto my-auto" controls controlsList="nofullscreen" oncontextmenu="return false"></video>

with css:

#prevVideo {
cursor: pointer;
transition: 0.3s;
}

#prevVideo:hover {
    opacity: 0.7;
}

that on double click should call a function:

$('#prevVideo').dblclick(function () {
    //do something
});

I need to display the controls but disabled them (no reaction to click), instead to call a function when double click on the video.

It is possible to display the controls but disabled and on double click to call a function (no fullscreen)?

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!