HTML5 video without context menu

9

How do I disable context menu of the right mouse button in videos, so that the video menu does not appear?

$('#nome').contextmenu( function() {
    return false;
});

The code above, but does not work in internet explorer, the video is left with an invalid font.

    
asked by anonymous 12.04.2014 / 23:28

1 answer

10

Try the following code:

$('body').on('contextmenu', '#nome', function(e){ return false; });
  

Original source: link

    
12.04.2014 / 23:37