+1 vote
asked in HTML by (4.2k points)
I need to disable right-click on a hyperlink which is in a span. I need to disable only one link from the whole page. Any suggestions?

1 Answer

0 votes
answered by (4k points)


if you dont want to show the context menu on hyperlink, you can do so without doing anything to other part or even span where it exists. I tested in IE, Firefox and it works.

<a href="#" oncontextmenu="return false;"> Link </a>