更改Chrome状态栏中显示的网址 [英] Change URL shown in Chrome status bar

查看:142
本文介绍了更改Chrome状态栏中显示的网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将鼠标悬停在Chrome中的某个网址上时,该网址会显示在Chrome状态栏中。在我的情况下,这导致了一个丑陋的javascript:bla-bla-bla引用。当鼠标悬停在链接上时,有没有办法改变状态栏的内容?

谢谢

解决方案

我很确定,出于安全原因,这在任何浏览器中都是不可能的。否则,钓鱼网站的链接将变得非常难以发现,因为攻击者可以在状态栏中放置一个真正的URL,而危险链接实际上可以通向其他地方......



为你的超链接使用onclick事件处理程序,并在 href 属性中放置一个真正有意义的URL来代替 javascript:链接(即使链接仅用于JavaScript)。


When I hover over a url in Chrome, the url is displayed in the Chrome status bar. In my case this results in an ugly javascript:bla-bla-bla reference. Is there any way to change the contents of the status bar when you hover over a link?

Thanks

解决方案

I'm pretty sure for security reasons this isn't possible in any browser. Otherwise links to phishing sites will become much, much harder to detect, because attackers can then just place a genuine URL in the status bar while the dangerous link actually leads elsewhere...

Use an onclick event handler for your hyperlink instead, and put a real, meaningful URL in the href attribute in place of the javascript: link (even if the link is meant to be used only with JavaScript).

这篇关于更改Chrome状态栏中显示的网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆