<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>chaichanPaPa</author_name>
  <author_url>https://blog.hatena.ne.jp/chaichanPaPa/</author_url>
  <blog_title>旧燈明日記</blog_title>
  <blog_url>https://chaipa.hateblo.jp/</blog_url>
  <categories>
    <anon>WEB</anon>
  </categories>
  <description>ブラウザの戻るボタンは、たぶん普通、JavaScript等では制御できません。 しかし、戻るボタンを無効にしたいケースは、結構ありますね。 たとえば、ログインが必要なサイトからログアウトした後に、戻るボタンを押されるとログインできてしまうとか。 そんな時は、『戻りたくないページ』に以下のJavaScriptを入れておきます。 &lt;script type=&quot;text/javascript&quot;&gt; history.forward(); &lt;/script&gt; すると、あたかも戻るボタンが無効になったようになるのです。 説明すると、『戻りたくないページ』が初回に表示したときは、forwardのページがまだない…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaipa.hateblo.jp%2Fentry%2F20071111%2F1194782543&quot; title=&quot; 戻るボタンを擬似的に制御する - 旧燈明日記&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>2007-11-11 21:02:23</published>
  <title> 戻るボタンを擬似的に制御する</title>
  <type>rich</type>
  <url>https://chaipa.hateblo.jp/entry/20071111/1194782543</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
