1

I have a Bootstrap modal with a simple button link in it. Right now I am working with the following:

jQuery('#jobPostWarning').find('a').mousedown(function(e) {
     if(e.which === 3) {
        jQuery(this).find('a').trigger("click");
     }
});

The goal here is the make the right click work the same as the left when a user tries to open a new window on the modal link_to button.

rrk
  • 15,677
  • 4
  • 29
  • 45
Chris Hough
  • 3,389
  • 3
  • 41
  • 80

1 Answers1

0

You might be able to do something like this:

How to add a custom right-click menu to a webpage?

Overriding a browsers right click menu isn't very reliable though.

See this answer for more details.

Community
  • 1
  • 1
Andrew Hendrie
  • 6,205
  • 4
  • 40
  • 71