Javascript Iframe innerHTML

后端 未结 10 2643
没有蜡笔的小新
没有蜡笔的小新 2020-11-27 07:08

Does anyone know how to get the HTML out of an IFRAME I have tried several different ways:

document.getElementById(\'iframe01\').contentDocument.body.innerHT         


        
10条回答
  •  忘掉有多难
    2020-11-27 07:55

    Don't forget that you can not cross domains because of security.

    So if this is the case, you should use JSON.

提交回复
热议问题