![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
On Jun 15, 10:44 am, "DRS.Use... (AT) sengsational (DOT) com" DRS.Use... (AT) sengsational (DOT) com> wrote: When I run Code:
I am able to pull the content. I see something like this Code:
What I want to get is the HTML inside of one of the frames, specifically "sample.html". I am able to get to an HTMLFrameElement object using "content.document.getElementsByName("body")[0]", but have not been able to grab the content, and I'm not so sure that's the right path to be taking to get the content. The property I was looking for was "contentDocument". Here is the solution: content.document.getElementsByName("body") [0].contentDocument.documentElement.innerHTML which I was able to assemble once I found the "right" API documentation here:http://www.xulplanet.com/references/...DOMHTMLFrameEl... |
![]() |
| Thread Tools | |
| Display Modes | |
| |