'Enforce browser to treat element as a link in JS

I have a table with rows that handle onClick events which redirect users to another route based on keyRow. Therefore, I'd like to have a context menu typical for links (as follows):

enter image description here

However, I see a common context menu:

enter image description here

What could I do to have the context menu typical for links?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source