loading html page inside div

后端 未结 6 655
有刺的猬
有刺的猬 2020-12-18 08:01

how can I load an html page inside a div. With the \'object\' tag it\'s loading, but I think it\'s not a good approach. It is not an external file. Is dojo good for this?

6条回答
  •  囚心锁ツ
    2020-12-18 08:08

    I'm not completely sure what you're looking for, but if you're wishing to display an HTML document inside another HTML document then I think the only way to do this is to use an iframe. Check out this tutorial: http://www.designplace.org/tutorials.php?page=1&c_id=1

    Perhaps you could load the HTML document and strip away the HEAD and wrapping BODY elements and then insert the code into the DIV element.

    EDIT: Ah, no iframes you said. Well, then I propose the latter. ^^

提交回复
热议问题