Greeting,
I searched a little but couldn't find anything I was able to understand. My goal is load some data into a frame (iframe), manipulate it a little, and then replace the contents of the frame with this (now manipulated) text. To that end, I'm only at the point of trying, without success, to get the contents of the frame at all:
does not work
_________________
Bob Rashkin
I searched a little but couldn't find anything I was able to understand. My goal is load some data into a frame (iframe), manipulate it a little, and then replace the contents of the frame with this (now manipulated) text. To that end, I'm only at the point of trying, without success, to get the contents of the frame at all:
Code:
<html>
<head></head>
<body>
iframe test
<iframe id="if1" src="file://h:/java/zlnch.txt" align="right">
</iframe>
<div id="d1"></div>
<script type="text/javascript">
[red]document.getElementById("d1").innerHTML=if1.document.body.innerHTML[/red]
</script>
</body></html>
_________________
Bob Rashkin