原文地址:http://blog.ops.cc/webtech/javascript/f5nhm.html

 

<body>

    <script>var iframe = document.createElement("IFRAME");

        document.body.appendChild(iframe);

        iframe.src = "http://www.ops.cc";



        if (iframe.attachEvent) {

            iframe.attachEvent("onload", function () {

                alert("Local iframe is now loaded.");

            });

        } else {

            iframe.onload = function () {

                alert("Local iframe is now loaded.");

            };

        }

    </script>

</body>

 

相关文章:

  • 2021-12-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-03
  • 2022-01-19
  • 2022-01-17
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-02-05
  • 2022-12-23
  • 2021-11-18
  • 2021-12-21
相关资源
相似解决方案