<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>miki_bene</author_name>
  <author_url>https://blog.hatena.ne.jp/miki_bene/</author_url>
  <blog_title>ドキュメントを見たほうが早い</blog_title>
  <blog_url>https://benevolent0505.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>背景 今受けている大学の授業でJavaScriptを扱っている。 その授業で window.openという関数を用いて新しいウィンドウを開いたり閉じたりする関数を作るという課題が出ているのだが、この課題に取り組んでいる友人がプログラムが動かないと言っていたので、コードを見たところ下のようなコードを書いていた。 &lt;script&gt; function open(a) { window.open(a); } &lt;script&gt; &lt;body&gt; &lt;input type=&quot;button&quot; onclick=&quot;open('~~~~')&quot;&gt; &lt;/body&gt; このコードが動かない理由について下で書いていく。 何故動か…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbenevolent0505.hatenablog.com%2Fentry%2F2016%2F05%2F28%2F222141&quot; title=&quot;JavaScriptでopenという名前の関数を作るとどうなるか - ドキュメントを見たほうが早い&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>http://ecx.images-amazon.com/images/I/51yrjFsf-2L.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-05-28 22:21:41</published>
  <title>JavaScriptでopenという名前の関数を作るとどうなるか</title>
  <type>rich</type>
  <url>https://benevolent0505.hatenablog.com/entry/2016/05/28/222141</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
