iframeの読み込みが完了後、onloadが動作するのか検証 すぐ読み込みが完了してしまうとテストできないので、iframeの読み込みを5秒遅らせる <?php sleep(5);//5秒待機 echo 'iframetest'; ?> <html> <script type="text/javascript"> alert('一番初めに実行されます'); </script> </html> <body> <iframe onload="alert('2番目に実行されます')" src="//***"> </iframe> <script type="text/javascript"> $(window).load(function() { alert("最後に実行されます"); }); </script> </body>