hello.
i have a page (index.html) that has an iframe (normally i will make it either very small or hidden)
the frame points to a url(page1.html)
here's the source of page1.html
what i want to do is the following:
in index.html i need to show only the innerhtml of the div called content.
so i need the javascript to accomplish this...
index.html should be sthg like
thanks in advance
Cheers, Dan
i have a page (index.html) that has an iframe (normally i will make it either very small or hidden)
the frame points to a url(page1.html)
here's the source of page1.html
Code:
<html>
<head>
<title>page1</title>
</head>
<body>
<div name="content" id="content">contents in here</div>
</body>
</html>
in index.html i need to show only the innerhtml of the div called content.
so i need the javascript to accomplish this...
index.html should be sthg like
Code:
<html>
<head>
<title>index</title>
</head>
<body>
<iframe url="page1.html" name="f" id="f"></iframe>
<script>document.write(document.getElementById('f').content.innerHTML);</script>
</body>
</html>
thanks in advance
Cheers, Dan