如何在浏览器状态栏中显示文本? [英] How to display text in the browser status bar?

查看:1149
本文介绍了如何在浏览器状态栏中显示文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何使用JavaScript(或jQuery)更改浏览器状态栏中显示的文本?

解决方案

jQuery不是必需的:

 < script> 
function writetostatus(input){
window.status = input
return true
}
< / script>

但是,大多数较新的浏览器会阻止您在JavaScript中设置状态栏中的文本。 >

How can we change the text displayed in the browser status bar using JavaScript (or jQuery)?

解决方案

jQuery is not necessary to do this:

<script>
function writetostatus(input){
    window.status=input
    return true
}
</script>

However, most newer browsers prevent you from setting the text in the status bar from JavaScript.

这篇关于如何在浏览器状态栏中显示文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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