![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Sep 2004
Location: PA, USA
Posts: 5,283
|
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?
__________________
- David Hall ICQ: 312744199 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
|
target="_top" ?
__________________
Your post count means nothing. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Sep 2004
Location: PA, USA
Posts: 5,283
|
Quote:
__________________
- David Hall ICQ: 312744199 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Porn Meister
Industry Role:
Join Date: Feb 2005
Posts: 16,443
|
self.close?
__________________
43-922-863 Shut up and play your guitar. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Sep 2004
Location: PA, USA
Posts: 5,283
|
Quote:
The format would be "<a href="javascript:self.close">link</a>" right?
__________________
- David Hall ICQ: 312744199 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Porn Meister
Industry Role:
Join Date: Feb 2005
Posts: 16,443
|
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();"
__________________
43-922-863 Shut up and play your guitar. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Apr 2003
Location: Loveland, CO
Posts: 5,526
|
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.
__________________
Your post count means nothing. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Nov 2001
Location: Poland
Posts: 219
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Join Date: Sep 2004
Location: PA, USA
Posts: 5,283
|
Thanks guys, appreciate it.
__________________
- David Hall ICQ: 312744199 |
![]() |
![]() ![]() ![]() ![]() ![]() |