ruby on rails - jquery act on right click when user tries to open a new window -


i have bootstrap modal simple button link in it. right working following:

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

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

you might able this:

how add custom right-click menu webpage?

overriding browsers right click menu isn't reliable though.

see this answer more details.


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -