Does anyone know how to retrieve a part of the <noframes> content of a frameset using JavaScript?
[code=html]<frameset cols=”*,*” frameborder=”NO” border=”0″ framespacing=”0″>
<frame src=”left.html” name=”leftFrame” >
<frame src=”right.html” name=”rightFrame”>
<noframes>
<body>
<p id=’noFramesText’>I want to retrieve this text</p>
</body>
</noframes>
</frameset>
I want to dynamically place the text in the frame named ‘leftFrame’. All pages belong to the same domain.
This code inside [B]left.html
[CODE]window.onload = function()
{
var noFramesText = top.document.getElementById(‘noFramesText’);
alert(noFramesText);
}