# Frames/Javascript funn troubles

**URL:** <https://forum.kirupa.com/t/frames-javascript-funn-troubles/247616>\
**Category:** web dev\
**Created:** [December 27, 2007, 8:25am UTC](https://forum.kirupa.com/t/frames-javascript-funn-troubles/247616 "2007-12-27T08:25:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![whoist0m](https://avatars.discourse-cdn.com/v4/letter/w/e9bcb4/32.png) [@whoist0m](https://forum.kirupa.com/u/whoist0m)\
**Post date:** [December 27, 2007, 8:25am UTC](https://forum.kirupa.com/t/frames-javascript-funn-troubles/247616/1 "2007-12-27T08:25:51Z")

</div>

I have a framed site  
one of the frames is targeted to an outside url that I have no control over.  
Now that outside site has a redirect in it which redirects the entire page (clearing the frames I have) is there a way around this?

Here is the site,

_ **WARNING IT IS A REFERAL SITE** _  
[http://www.youdonthavetogotocollege.com](http://www.youdonthavetogotocollege.com)

Sorry, It is a referal Its a php script that randomly picks which page to refer but once that page is refered it is redirected which I’m trying to get around so that my frame is not cleared?

my code

```auto
<?
$my_array = array("http://entensity.myminicity.com/ind", "http://entensity.myminicity.com/tra", "http://entensity.myminicity.com/sec", "http://entensity.myminicity.com/env", "http://entensity.myminicity.com/");
        for ($i=0; $i<=0; $i++)
        {
            $random = array_rand($my_array);
            $parola .= $my_array[$random];
        }
		
?>

<frameset rows="100px,100%" border="0">

  <frame src="top.htm" />
  <frame name="bottom" id="bottom" src="<? echo($parola) ?>" target="bottom" />

</frameset>

```
