title: Disable Right-Clicking In HTML5 Video?
body: <p>I'm using an HTML5 video player on my website and I want to disable right-clicking on all my videos.</p>
  <p>I tried using this code and it doesn't work:</p>
  <pre><code>&lt;script type=&quot;text/javascript&quot;&gt;
  $(document).ready(function(){
  $('#videoElementID').bind('contextmenu',function() { return false; });
  });
  &lt;/script&gt;
  </code></pre>
  <p>I'm using WordPress and placed the function above in the <code>header.php</code> file.</p>
  <p>How can I check what is the <code>#videoElementID</code> name for my player? I tried with all the DIV elements on the page and it still doesn't work. I know this won't prevent users to download my videos but I really need to make this work.</p>