Search
 
SCRIPT & CODE EXAMPLE
 

HTML

html video disable right click

<video oncontextmenu="return false;" id="my-video-player" width="854" height="480" controls autoplay>
  <source src="https://example.com/link-to-my-video.mp4" type="video/mp4">
</video>
Comment

how to disable right clicking on video using html

To disable right clicking on your video in html
<--- Add the line below to your video tag --->
oncontextmenu="return false;"
  
<-- For Example -->
  
<video id="myVideo" width="350" height="500" oncontextmenu="return false;" controls autoplay>
  <source src="video.mp4" type="video/mp4">
</video>
  
<-- You can also remove the download option by adding the line below -->
controlsList="nodownload"
  
  <-- For Example -->
    
<video id="myVideo" width="350" height="500" oncontextmenu="return false;" controlsList="nodownload" controls autoplay>
  <source src="video.mp4" type="video/mp4">
</video>
Comment

PREVIOUS NEXT
Code Example
Html :: lien dans un nouvel onglet html 
Html :: how to change website icon html 
Html :: html input type file accept text and word files 
Html :: how to import taglib 
Html :: input type file csv only 
Html :: enctype= multipart/form-data 
Html :: bootstrap display inline block 
Html :: difference between name and value in html 
Html :: bootstrap 5 text bold 
Html :: set icon website 
Html :: image drive inside html 
Html :: html phone 
Html :: html power 
Html :: favicon not showing up 
Html :: link to send email with subject 
Html :: visualizador de pdf html5 
Html :: meta refresh url 
Html :: gmail imap settings 
Html :: tailwind css background image 
Html :: align image center of webpage 
Html :: chrome clear cache for one site 
Html :: chrome full screen mac hide tabs 
Html :: open link in a new tab hmtl 
Html :: iframe youtube autoplay loop 
Html :: select html unselectable option 
Html :: how to remove right clickk option from video tag in html 
Html :: Can I customize the Work Order Tablet View? I want all the buttons at the top. odoo 
Html :: how do you make a partial hr line in html 
Html :: nuxt cursor focus 
Html :: ionic 4 bind html 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =