westcoaststyle
Programmer
Ok, I have a top frame in a set of two (top and bottom). I want to have a link in the top frame that, when clicked, removes the frame to leave the bottom frame only.
The code I was using I found on this site:
I tried modifying it and used this too:
but, what it's doing is making the whole page the top frame instead of the opposite.
The frames page looks like this:
You can see it in action at
Thanks!!
The code I was using I found on this site:
Code:
<a href="javascript:document.location=bottom.document.location" target="_top">remove frame</a>
I tried modifying it and used this too:
Code:
<a href="#" onMouseover="window.status='close this frame';return true;" onClick="document.location='bottom.document.location'" target="_top">remove frame</a>
but, what it's doing is making the whole page the top frame instead of the opposite.
The frames page looks like this:
Code:
<frameset framespacing="1" rows="20,*">
<frame name="top" scrolling="no" noresize target="bottom" src="musiccontrol.htm" marginwidth="0" marginheight="0">
<frame name="bottom" src="index2.htm">
You can see it in action at
Thanks!!