Online Advertising - Cheap Cameras - Web Hosting - Find jobs - Web directory

PDA

View Full Version : frameElement question


deluxmilkman
Oct 3rd 2007, 7:13 am
i have this on my main html.

<head></head>
<frameset rows="110,*" cols="*" framespacing="0" frameborder="no" border="0" bordercolor="#FFFFFF">
<frame src="top.html" name="top" frameborder="no" scrolling="no" id="top">
<frame src="bottom1.html" name="bottom" id="bottom">
<noframes><body>

</body></noframes>



and i would like to change the "bottom frame src" using something like this.



function bottomChange(){
var oFrame = window.frameElement;
oFrame.src = "bottom2.html";
}



now if im writing this function on "top.html" what "window.frameElement" section should be?

ezpz
Oct 4th 2007, 8:31 pm
Try

parent.frames['bottom'].location.href = "bottom2.html"