aspose file tools*
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 Spring in Action this week in the Spring 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
 
Don't get me started about those stupid light bulbs.
 
subject: Reading content from iFrame