Reputation:
I am presently tinkering with this HTML5 video player, video.js and I would like to edit the present HTML5 right-click context menu to something of my own. I used oncontextmenu="return false"
in the video tag to get rid of the context menu. Any suggestions as to how I go about editing the menu to add what I want link maybe a hyperlink?
Upvotes: 1
Views: 1345
Reputation: 2147
Please use this code between script tag.
$(document).ready(function(){
document.oncontextmenu = function() {
return false;
};
});
Upvotes: 1