开发者

IE7 context menu options for javascript links

开发者 https://www.devze.com 2022-12-09 22:07 出处:网络
In IE8, Safari, Chrome and Firefox if I right-click on the link the new tab and new window options are disabled.Right-clicking the link in IE7 still has th开发者_StackOverflow社区ese two options enabl

In IE8, Safari, Chrome and Firefox if I right-click on the link the new tab and new window options are disabled. Right-clicking the link in IE7 still has th开发者_StackOverflow社区ese two options enabled. Is there any way to disabled these options in IE7 for javascript links?

Sample Code:

<html>
<body>
<a href="javascript: alert('Hello');">Javascript link</a>
</body>
</html>


This does not have anything to do with the HTML, but the browser. I am 99.9% sure you can't change it, it's hardcoded in IE7 by Microsoft. Submit a bug to Microsoft, but they'll probably say "We no longer support IE7, nor do we give a crap about your problems." (Maybe not exactly like that :) ).

So, this is not a programming question, it's a software question, hence why you got downvoted (I didn't do it, but that's my assumption).

0

精彩评论

暂无评论...
验证码 换一张
取 消