HTML DOM defaultStatus 属性

定义和用法

defaultStatus 属性可设置或返回窗口状态栏中的默认文本。该属性可读可写。

该文本会在页面加载时被显示。

语法

window.defaultStatus=sometext

实例

下面的例子讲在状态栏设置文本:

<html>
<body>

<script type="text/javascript">
window.defaultStatus="This is the default text in the status bar!!";
</script>

<p>Look at the text in the statusbar.</p>

</body>
</html>
系统帮助 | 给我留言 | 收藏本站
Copyright © 2005-2008 www.cnn84.com All Rights Reserved Ver:2.0
CNN84网是公益性便民网站,是为了给大家的日常生活查询及提供最快捷的出行指南