HTML - 覆盖状态栏链接位置显示
当链接上鼠标悬停状态时,状态栏会显示链接在状态栏中的位置,如下图所示... 有没有办法更改\覆盖它以显示一些所需的文本...
when on Mouse Over state on a link the status bar shows the link's location in the status bar like in the following image...
is there a way to change\override this to show some desired text...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
出于安全原因(网络钓鱼),大多数浏览器默认会阻止更改状态行的尝试。
您无论如何都可以尝试:
第二种方法:
缺点:例如,您无法使用 Ctrl + 单击在新选项卡/窗口中打开它。
Most browsers will block attempts to change the status line by default for security reasons (phishing).
You can try it anyway:
A second approach:
Con: you can't open it in a new tabblad / window using Ctrl + click for example.
在ie9中方法1没有任何效果。方法 2 也达不到隐藏信息的目的,通过在状态栏中放置活动文件路径,而不是习惯的内插 uri:
也许有一种方法可以使用方法 2。可能是代理链接文件位置拦截。例如:
其中 c:\links\anylink 链接到 c:\private\privatefile ...?
此外:“缺点:无法在新选项卡/新窗口中打开链接”...javascript?
In ie9 method 1 does not have any effect. Method 2 also defeats the purpose of concealing info, by placing active file path in status bar, rather than customary interpolated uri:
Perhaps there is a way to use method 2. Possibly a proxy link-file location intercept. For example:
where c:\links\anylink links to c:\private\privatefile ...?
Further: 'Con: can't open link in new tab / new window' ... javascript?
这应该有效
This should work
如果您必须更改状态,可以使用以下跨浏览器解决方案:
< /code>
缺点是它需要 Javascript
将“这是一个链接”更改为所需的文本,并将“myurl.html”更改为窗口文件的路径。
如果您需要使用“_blank”打开一个 url,您可以创建一个 不幸的是,
.:”必须出现在文本的前面,否则它将呈现为 url。
“ link:" 然后是你的 url。在 Firefox 中测试。
注意:出于其他人建议中提到的安全原因,你只能更改 Opera(以及可能的 IE 6 及更早版本)的 window.status。
If you must change the status, here is a cross browser solution that works:
<a href=".: This a link" onClick="window.location='myurl.html';return false">
Downside is that it requires Javascript
Change "This is a link" to required text" and change "myurl.html" to the path of the window file.
If you need to open a url using "_blank" you can create a function that opens a new window instead.
Unfortunately ".:" has to appear at the front of the text otherwise it will render as a url. Tested in IE9. (Firefox and other browsers render this differently
For other browser you could alternatively use "link:" then your url. Tested in Firefox.
NB: you can only change window.status for Opera, (and possible IE 6 and earlier), for security reasons as mentioned in other people's suggestions.
当我们下次尝试向页面输入更多数据时,
onmouseover
或JavaScript
将从博客网站的ckeditor
中删除。所以我想,这个方法应该可以在Firefox浏览器中经过我的测试。onmouseover
orJavaScript
are removed fromckeditor
of blog sites when we try to input to a page more data next time. So I think, this method should work tested by me in Firefox browser.