Page 1 of 1
Urgent JavaScript/Killing Frames question
Posted: 2004-08-15 10:04am
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).
Posted: 2004-08-15 10:23am
by phongn
Code: Select all
<a href="http://link/to/bottom/frame" target="_top">link description</a>
Posted: 2004-08-15 10:29am
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.
Posted: 2004-08-15 10:45am
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>
Posted: 2004-08-16 01:47am
by jairyn_1
-bump- Any help appreciated...