SYNCERのロゴ
アイキャッチ画像

Window.status - ステータス

statusは、Windowのプロパティです。ウィンドウのステータスを表す文字列を返します。値を代入して設定できます。以前はブラウザのステータスバーにメッセージとして表示されたようです。

概要

名前
status
所属
Window
IDL
attribute DOMString status;
仕様書
https://html.spec.whatwg.org/multipage/window-object.html#dom-window-status

説明

ステータスを表す文字列を返す。何も設定されていない場合は空の文字列を返す。

デモ

Window.statusのデモです。

<!-- このコードは編集できます。 -->

<!DOCTYPE html>
<html>
<head>
<style>
body { word-break: break-all ; }
div#result { white-space: pre-wrap ; }
</style>
</head>
<body>
<div id="result"></div>
<script>
var resultElement = document.getElementById( "result" ) ;

// 代入
window.status = "No Problem!!" ;

// 取得
var value = window.status ;

console.log( value ) ;
resultElement.appendChild( document.createTextNode( value ) ) ;
</script>

</body>
</html>

サポート状況

ChromeFirefoxSafariEdgeIEOperaiOS SafariAndroid
  • Twitterでシェア
  • Facebookでシェア
  • Google+でシェア
  • はてなブックマークでシェア
  • pocketに保存
  • LINEでシェア
更新履歴
2017年10月13日 (金)
コンテンツを公開しました。