The code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Example</title>
<style type="text/css">
</style>
<script type="text/javascript">
// <![CDATA[
window.onload = function()
{
var iframe_window = window.frames["my_iframe"];
var iframe_body_html = iframe_window.document.getElementsByTagName("body")[0].innerHTML;
//var html = http://virtual-economy.org.replace(/me/gi,"you"); //case-insensitive
//var html = iframe_body_html.replace(/me/g,"you");
//html = html.replace(/ME/g,"YOU");
document.getElementById("output").innerHTML = html;
}
// ]]>
</script>
</head>
<body>
<iframe name="my_iframe" id="my_iframe" width=500 height=500 src="http://virtual-economy.org"></iframe>
<div id="output"></div>
</body>
</html>
Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.
”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.