how to get iframe source code that is on different domain

时间:2016-08-30 04:40:58

标签: javascript html iframe

I am able to get a 3rd party iframe component working on the site. But, I get a security Exception (not same domain) when I am trying to access its source code. Is there a way or workaround to get the source code of the iframe component?

document.getElementById("iframe_id").contentWindow.document.documentElement.outerHTML

0 个答案:

没有答案