so basically you want to check what the URL Address of the page is, and if it is not the framed page you want to redirect to the framed page?
what language? Javascript / PHP / ASP ??? A server side program would be best because anyone can disable javascript on the client side and thus the redirect will not happen, but with php / asp or some other type of server side programming language the processing takes place before the page is sent back to the browser.
since you are using framed pages, I am going to assume you do not have access to a server-side language so the script below would need to be included on every page that you wish to check.
Code:
<script type="text/javascript">
if(top.location.href != "http://www.RandomURL.co.nr")
{
top.location = "http://www.RandomURL.co.nr";
}
</script>
Bookmarks