<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shogo4405</author_name>
  <author_url>https://blog.hatena.ne.jp/shogo4405/</author_url>
  <blog_title>Thousand Years</blog_title>
  <blog_url>https://shogo4405.hatenadiary.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>DOM</anon>
  </categories>
  <description>ところで jQuery#html()にscriptを突っ込んでもJSを実行してくれます。document.writeを利用するとひどいことになりますけど(--; $(&quot;#foo&quot;).html(&quot;&lt;script&gt;alert('Hello');&lt;&quot;+&quot;/script&gt;&quot;); innerHTMLでscriptする為の方法 document.getElementById(&quot;foo&quot;).innerHTML = &quot;Hello&lt;script&gt;document.write('World!!')&lt;&quot;+&quot;/script&gt;&quot;; innerHTMLにscriptタグを追加して動作させる為の方法です。innerHTML…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshogo4405.hatenadiary.com%2Fentry%2F20080127%2F1201442279&quot; title=&quot;innerHTMLでスクリプトする為のバッドノウハウ - Thousand Years&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>2008-01-27 22:57:59</published>
  <title>innerHTMLでスクリプトする為のバッドノウハウ</title>
  <type>rich</type>
  <url>https://shogo4405.hatenadiary.com/entry/20080127/1201442279</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
