Window status 属性
最后更新于:2022-03-26 22:10:53
Window status 属性
Window 对象
定义和用法
status 属性可设置或返回窗口状态栏中的文本。
语法
浏览器支持





注意: status属性在IE,火狐,Chrome,和Safari默认配置是不能正常工作。要允许脚本来改变状态栏文本,用户必须把配置屏幕首选项设置为false dom.disable_window_status_change。(或在Firefox:”工具 – 选项 – 内容 – 启用的JavaScript /”高级” – 允许脚本更改状态栏文本”)。
实例
实例
设置在状态栏中的文本:
<script>
window.status=”一些文本在状态栏!”;
</script>
尝试一下 »
Window 对象