Access external HTML page content of object tags

前端 未结 3 909
清歌不尽
清歌不尽 2021-01-14 14:47

I\'ve searched an answer to this question but can\'t get a way how to do it.

I want to access the content of a div that I have included in an object tag.

My

3条回答
  •  旧时难觅i
    2021-01-14 15:16

    document.getElementById('id').innerHTML or document.getElementById('id').outerHTML whichever you are looking for...

    see how to append to a object with innerHTML

提交回复
热议问题