<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chamotarooo</author_name>
  <author_url>https://blog.hatena.ne.jp/chamotarooo/</author_url>
  <blog_title>chamotaroooのブログ</blog_title>
  <blog_url>https://chamotaro.hatenablog.com/</blog_url>
  <categories>
    <anon>技術</anon>
  </categories>
  <description>はじめに window.history について教えてほしい、という疑問を出発点にした。 名前だけを見ると、ブラウザの閲覧履歴を読むための道具に見える。 だが調べると、読むためよりも、履歴に項目を足したり書き換えたりするための道具だった。 この記事では、何ができて、何ができないのかを、順に整理する。 ブラウザが持っている「戻る」と「進む」の一覧 ブラウザは、タブごとに、開いたページを順番に並べた一覧を持っている。 「戻る」ボタンは、この一覧のひとつ前の項目に移る操作である。 一覧の名前はセッション履歴という。 window.history は、この一覧を JavaScript から触るための窓…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchamotaro.hatenablog.com%2Fentry%2Ftech%2Fwindow-history&quot; title=&quot;window.historyは何をしているのか - chamotaroooのブログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-10-25 10:09:21</published>
  <title>window.historyは何をしているのか</title>
  <type>rich</type>
  <url>https://chamotaro.hatenablog.com/entry/tech/window-history</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
