[問題] 取得iframe content (cross-domain)
請問一下各位如果不使用ajax或後端curl技術, 有沒有可以用javascript
取得cross-domain的page內容
比如說我的網頁如下 :
<html>
<iframe src="http://www.kimo.com.tw" id="yahoo"></frame>
<div id="show"></div>
</html>
可否用javascript取得iframe的content, 然後將content顯示到show div裡面
我大致使用了一下, 會有xss的問題js會報錯誤, 不知有沒有大大可以做到 ?
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 118.163.122.55
※ 文章網址: https://www.ptt.cc/bbs/Web_Design/M.1449568856.A.ACB.html
※ 編輯: herbacin (118.163.122.55), 12/08/2015 18:01:09
→
12/08 19:00, , 1F
12/08 19:00, 1F
→
12/08 23:49, , 2F
12/08 23:49, 2F
→
12/08 23:49, , 3F
12/08 23:49, 3F
※ 編輯: herbacin (114.34.181.227), 12/08/2015 23:49:48
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章