HTML DOM defaultStatus 属性
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>