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

Window.history - 履歴

historyは、Windowのプロパティです。Historyを返します。

概要

名前
history
所属
Window
IDL
readonly attribute History history;
仕様書
https://html.spec.whatwg.org/multipage/history.html#dom-history

説明

Historyを返す。

デモ

Window.historyのデモです。

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

<!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" ) ;

var value = window.history ;

console.log( value ) ;
resultElement.textContent = value ;
</script>
</body>
</html>

サポート状況

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