HTML DOM defaultStatus 屬性
定義和用法
defaultStatus 屬性可設(shè)置或返回窗口狀態(tài)欄中的默認(rèn)文本。該屬性可讀可寫。
該文本會(huì)在頁(yè)面加載時(shí)被顯示。
語(yǔ)法
window.defaultStatus=sometext
實(shí)例
下面的例子講在狀態(tài)欄設(shè)置文本:
<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>