Disable right click context menus with jQuery
$(document).ready(function(){
$(document).bind("contextmenu",function(e){
return false;
});
});
$(document).ready(function() {
$('#extlinks a').filter(function() {
return this.hostname && this.hostname !== location.hostname;
}).after(' <img src="/images/external.png" alt="external link"/>');
});
sourcebench 8:47 pm on December 21, 2009 Permalink |
Disable right click context menus with jQuery – http://bit.ly/7zbPOh
This comment was originally posted on Twitter