Urgent JavaScript/Killing Frames question

GEC: Discuss gaming, computers and electronics and venture into the bizarre world of STGODs.

Moderator: Thanas

Post Reply
User avatar
jairyn_1
Padawan Learner
Posts: 169
Joined: 2004-02-22 06:22am
Location: OMFG!!!!11! Teh b00bees!!!!! 1111oneoneshift+one 111!11oneeleven

Urgent JavaScript/Killing Frames question

Post by jairyn_1 »

Does anyone know of a way to kill a current frame with a link? For example, go to http://ifpro.myfreeadssecret.com (and please don't give me shit about this looking 'seedy' or whatever). I need that link that says "Click here to view the FULL SITE below...." to be able to kill the top frame and leave whatever is in the bottom frame alone (or replace the entire frameset with the URL of the bottom frame, if possible).
+++ ISARMA + BotM + Ubiqtorate + CotK: [mew]+++

ACPATHNTDWATGODW FOREVER!!

Join or die...
User avatar
phongn
Rebel Leader
Posts: 18487
Joined: 2002-07-03 11:11pm

Post by phongn »

Code: Select all

<a href="http://link/to/bottom/frame" target="_top">link description</a>
User avatar
jairyn_1
Padawan Learner
Posts: 169
Joined: 2004-02-22 06:22am
Location: OMFG!!!!11! Teh b00bees!!!!! 1111oneoneshift+one 111!11oneeleven

Post by jairyn_1 »

phongn wrote:

Code: Select all

<a href="http://link/to/bottom/frame" target="_top">link description</a>
Yes, this i know... however, I need it to be able to do it for whatever is there, as the bottom frame needs to be able to navigate on and off of my site's server, so the above link can't be hardcoded.
+++ ISARMA + BotM + Ubiqtorate + CotK: [mew]+++

ACPATHNTDWATGODW FOREVER!!

Join or die...
User avatar
jairyn_1
Padawan Learner
Posts: 169
Joined: 2004-02-22 06:22am
Location: OMFG!!!!11! Teh b00bees!!!!! 1111oneoneshift+one 111!11oneeleven

Post by jairyn_1 »

Ok, found this snippet of code, but not sure what all I need to modify. The name of the frame to get is mainFrame.

Code: Select all

<script language="javascript">
// The name of the other frame
  var frameName = 'test';
// Assign the frame to a variable
  var frameFull = document.getElementById(frameName);
// Get the URL
   var frameURL = frameFull.src;
</script>
+++ ISARMA + BotM + Ubiqtorate + CotK: [mew]+++

ACPATHNTDWATGODW FOREVER!!

Join or die...
User avatar
jairyn_1
Padawan Learner
Posts: 169
Joined: 2004-02-22 06:22am
Location: OMFG!!!!11! Teh b00bees!!!!! 1111oneoneshift+one 111!11oneeleven

Post by jairyn_1 »

-bump- Any help appreciated...
+++ ISARMA + BotM + Ubiqtorate + CotK: [mew]+++

ACPATHNTDWATGODW FOREVER!!

Join or die...
Post Reply