jQuery in Action, 2nd edition*
The moose likes HTML, CSS and JavaScript and the fly likes Reading content from iFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Reading content from iFrame" Watch "Reading content from iFrame" New topic
Author

Reading content from iFrame

Sree Chinna
Ranch Hand

Joined: Jul 15, 2008
Posts: 42
I have a simple HTML page where I have an iFrame. I want to read the HTML from iFrame how do I do that ?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You can only read the content from the iframe if it is in your domain.

look into

var foo = document.getElementById("ifameId").getElementsByTagName("html")[0];

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading content from iFrame