You are here: get contents of iframe « HTML « IT news, forums, messages
get contents of iframe

Posted by markww on 10/21/71 11:46

I cannot get the contents of an iframe in my page, it is quickly
driving me insane. My iframe is defined like:

<iframe id = "e_body" name = "e_body" src="about:blank"></iframe>

I've made a function to retrieve the contents like:

function GetIFrameContentsPlease()
{
var strContents =
document.getElementById("e_body").document.body.innerHTML;

alert("the contents are: " + strContents);
}

but it fails. I need this to work on IE and FF, any suggestions?

Thanks

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация