Q:

How to get the contents of an iframe?

How do i extract all the text from an iframe ?
Is there any way to do this ?

A:

Clientside Same domain:
var doc;
if (document.getElementById(iframeId).contentDocument) { // newer browsers
  doc = document.getElementById(iframeId).contentDocument;
}
else if (document.getElementById(iframeId).contentWindow) { // older IE
  doc = document.getElementById(iframeId).contentWindow.document
}
if (doc) { alert(doc.body.innerHTML) }

If not, you need an HTA for windows or a proxy on the server

