0

ローカル Web ページがあります。

<html><head>
<script src="jquery.min.js"></script>
</head><body>
    <object id="oid" type="text/html" data="http://some-site" width="800px" height="600px" style="overflow:auto;border:5px ridge blue">
    testing
    </object>

    <script>
    $(document).ready(function(){
        $('object').ready(function() {
            setTimeout(function(){
                page = $('object').html();
                alert(page);
            }, 3000);
        });
    });
    </script>

</body></html>

アラート機能は、オブジェクト タグに読み込まれた HTML コンテンツではなく、「テスト」を表示しています。読み込まれたコンテンツから html を表示するために必要です。私は何を間違っていますか?

4

0 に答える 0