Read IFrame content using JavaScript

后端 未结 4 1237
误落风尘
误落风尘 2020-12-10 19:37

Ok, This is my first time dealing seriously with IFrames and I cant seem to understand a few things:

First the sample code I am testing with:



        
4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-10 19:50

    1) The iframe seems to be behaving as a HTML document and the file text is actually part of the body instead. Why ?

    you’re using the DOM/JS interface. this will only work, if the content is treated as HTML/XML.

提交回复
热议问题