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,214
  • 4
  • 26
  • 42
Chris Hough
  • 3,249
  • 2
  • 37
  • 72

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
  • 5,903
  • 4
  • 39
  • 70