overlay div over iframe

后端 未结 6 1174
一向
一向 2020-12-15 11:22

I\'m making a widget similar to the uservoice widgets, except I want the content of the page to be in an iFrame rather than the widget appear via javascript. How can I have

6条回答
  •  囚心锁ツ
    2020-12-15 11:59

    If you're not loading cross domain then you could just load in using jquery ajax call http://docs.jquery.com/Ajax/load

    $(document).ready(function () {
        $("#content").load("page.html");
    });
    

    and replace your iframe with

提交回复
热议问题