• Post Reply Bookmark Topic Watch Topic
  • New Topic

Reading content from iFrame  RSS feed

 
Sree Chinna
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!