DrDoc

msg:1491357 | 5:52 pm on Mar 8, 2003 (gmt 0) |
Sure you can ;) <a href="javascript:top.location.href=bottom.location.href">Remove frame</a> Replace "bottom" with the actual name of the frame :)
|
Bluetuna

msg:1491358 | 9:18 pm on Mar 8, 2003 (gmt 0) |
That is odd, I can't make it work (IE OSX). I have the script in the top frame, and the bottom frame's source is the remote file. Any ideas?
|
HocusPocus

msg:1491359 | 10:40 pm on Mar 8, 2003 (gmt 0) |
Try: <a href="javascript:self.location.href=window.bottom.location.href"> Remove frame</a> or <a href="window.bottom.location.href" target=_top> Remove frame</a>
|
Bluetuna

msg:1491360 | 12:09 am on Mar 9, 2003 (gmt 0) |
I must be having issues. What a day! I have no clue.
|
Bluetuna

msg:1491361 | 12:32 am on Mar 10, 2003 (gmt 0) |
Just to be sure, I don't need any script in the frameset, I can just put the script in the page that makes up the top frame, right? God I hate frames.
|
tedster

msg:1491362 | 5:16 am on Mar 10, 2003 (gmt 0) |
Right, you just put the script in the top frame. However, the advice you're being given assumes that you have assigned name="bottom" to the bottom frame. You should replace "bottom" with whatever name you have actually assigned to the bottom frame...and you assign that name attribute in the frameset document. Also note that "top" does not refer to the name of the top frame, so you do not change that. "Top" is a dedicated javascript word for the top level window - the parent of all contained frames.
|
|