I have not tried anything like this, but my guess would be something like this.
From the web age that is holding the framesets, you would do this:
Select the page that is in the main frame.
Select the element from this page you want to get the info from or put data into.
If you know about the DOM, you will need to use that. If you don’t know about the DOM, you will need to learn. Here is a tutorial on the DOM. http://www.w3schools.com/htmldom/default.asp
As I said, I have not tried it, so I do not know if it will even work.
yesterday, I had exactly same problem, I wanted to read some data which is in my iframe, so I understood that is a way for do that, for exampleto read body data in this html code and write in to test field :
we can write this javascript code:
function read() {
var myIFrame = document.getElementById(“url”);
var content =myIFrame.contentWindow;
document.getElementById(“test”).innerHTML = content.document.body.innerHTML;
}
Note1: you can read some special data with ID for example content.document.getElementById(“text1″).innerHTML;
Note2: the contentWindow work on FireFox and google chrome, but for use in IE you should use of contentDocument
Note3: I am not sure that this way work on frame too, but if it doesn’t work, you can use iframe in place of frame
Comments
Leave a comment Trackback