Top page:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script type="text/javascript">
function intoIframe(fr, el_id, txt){
window.frames[fr].document.getElementById(el_id).innerHTML=txt;
}
</script>
</head>
<body>
<iframe src="ed.htm" width="300" height="300" scrolling="auto" frameborder="1"></iframe><br>
<input type="button" onclick="intoIframe(0, 'ed1', 'Hello World');" value="Test">
</body>
</html>
ed.htm:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<div id="ed1">
</div>
</body>
</html>
Bookmarks