![]() |
Need simple javascript help
Ok, I have a page that is split into two frames.
I want to have a link in the top frame, that when clicked, will close itself and leave only the bottom frame. How can I do this? |
target="_top" ?
|
Quote:
|
self.close?
|
Quote:
The format would be "<a href="javascript:self.close">link</a>" right? |
Or something like an onclick="window.close();" maybe.. that might throw up a warning though.
If it does, you could fool it by putting onClick="window.opener=self; window.close();" |
Quote:
a href... target="_top"> just tells the browser to open the link in the outer-most frame of the current window -- basically it opens the link in the entire window eliminating all frames that currently reside in the window (not a new window, that would be target="_blank"). But I could be misunderstanding what you're talking about, too. |
you must reload bottom frame
suppose bottom frame name is "lisa" just use something like this <a href="java_script:top.location.href=lisa.location. href;">click me</a> just remove _ sorry i'm too drunk to write it easier or just do it like this guy above me said |
Thanks guys, appreciate it.
|
All times are GMT -7. The time now is 08:33 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123