js筆記

常用軟體,程式語言的筆記和疑問
Forum rules
盡量做到:
每一個貼子都精心編輯;
每一個疑問都得到解答。
ejsoon
Site Admin
Posts: 3919
Joined: 2016 Jan 10, 22:15

how-to-get-the-bodys-content-of-an-iframe-in-javascript

Post by ejsoon » 2018 Dec 04, 15:05

how-to-get-the-bodys-content-of-an-iframe-in-javascript
document.getElementById('iframe_id').contentWindow.document.body.innerHTML;

Post Reply