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>
サポート状況
Chrome | Firefox | Safari | Edge | IE | Opera | iOS Safari | Android |
---|---|---|---|---|---|---|---|
● | ● | ● | ● | ● | ● | ● | ● |
関連記事
- Window.navigator
- navigatorは、Windowのプロパティです。Navigatorを返します。
- Window.customElements
- customElementsは、Windowのプロパティです。CustomElementRegistryを返します。
- Window.window
- windowは、Windowのプロパティです。Windowを返します。これは、自分自身と同じです。window===window.windowも、window===window.window.windowも成り立ちます。windowがWindowを返す仕組みの元です。
- Window.location
- locationは、Windowのプロパティです。Locationを返します。