grai grai - 2 months ago 16
Javascript Question

How to disable the 'Open Link in New Tab' in the browser?

How do I disable/remove the 'Open Link in New Tab' option in the right-click menu of the browser?
If this is not possible with javascript etc then is there a way to modify what happens when the user clicks on this link, for example, display an alert or prevent the tab from loading..?


Have solved the main issue now, quite easily as it turned out just by passing the query string of the href to an ajax function.

I probably should have explained in my question that what I wanted was intended only as a temporary measure. Anyway thanks for all the comments.