How do I load a webpage inside a div using Javascript without IFRAME and JQuery?

后端 未结 4 970
时光说笑
时光说笑 2021-01-16 01:00

I need to load an external webpage into a div. I don\'t want to use an iFrame. And I want this done with plain Javascript. I\'m not sure how to go about it.

4条回答
  •  清歌不尽
    2021-01-16 01:54

    Whichever method you have, in js, try this instead : $('#myid').load('mylink.com')

    I know only this in js.

提交回复
热议问题