wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
Powerpoint Presentation In An IFRAME
How do I page iframe search string to a parent window ?
Java Script or what
Retrieving from iframe?
How exit from Iframe