JavaScript的:改变浏览器窗口的状态信息
它曾经是可能改变浏览器显示在窗口底部的状态栏中的消息。此功能已在新的浏览器版本,由于虐待被禁用。
It was once possible to change the message a browser shows in the status bar at the bottom of the window. This functionality has been disabled in newer browser versions due to abuse.
<script type="text/javascript">
window.status = 'hello world';
</script>
是否还有什么办法来实现这一(考虑jQuery的可用)?我想我还是看到页面周围改变状态的消息,但他们可能会使用Flash或Java改变窗口状态。
Is there still any way to achieve this (consider jQuery available)? I think I still see pages around that change the status message, but they might use Flash or Java to change the window status.
有两件事情可以不用Flash或Java做的:
There are two things you can do without Flash or Java:
-
假货:显示一个
DIV
,看起来像一个状态栏
position: fixed;
bottom: 0;
left: 0;
border: 1px solid silver;
background: #aaaaaa;
让你表现出理想的信息给用户,当他们将鼠标悬停在链接的URL中选择。
Choose URLs so that you show desired information to the user when they hover over links.
但请不要。