2014-03-10から1日間の記事一覧
1*1pixelのダミーgifを用意しておき 以下のようにappend。 その前のappendも含めて終了しているかどうかを確認する イベントリスナloadを使う。 var img = document.createElement('img'); img.addEventListener('load',function(){console.log('load');},fa…
以下のように記述をしてみて、動作しているので大丈夫です。 <li class="navi02"><a href="guide/price.html" onclick="javascript:alert('料金プラン');">料金プラン</a></li>
var iframe = document.createElement('IFRAME'); document.getElementById('blog_test').appendChild(iframe); var doc = frames[frames.length - 1].document; doc.open(); doc.write('<p id = "hello">Hello!</p>'); doc.close(); 取得するには var elm = iframe.contentDocum…