?
Solved

Remove .tk frame

Posted on 2006-05-11
2
Medium Priority
?
826 Views
Last Modified: 2012-06-27
Hi,

I have a website on a personal webserver which is banner free, as this hosting is on a personal server the websites address is a ip, which is very long and un-attractive, so i signed up for a .tk free domain name, but this free domain adds a frame to the site to show banners, i was hoping for a solution to remove this frame, i have had a look on the net, but found no results to this problem, i have found some interesting javascript solutions, but these do not work, i have tryed:

<head>
<script language="JavaScript" type="text/javascript">
<!--
function breakout_of_frame()
{
  // see http://www.thesitewizard.com/archive/framebreak.shtml
  // for an explanation of this script and how to use it on your
  // own website
  if (top.location != location) {
    top.location.href = document.location.href ;
  }
}
-->
</script>
</head>

but with no luck, if there is no way to remove the frame, perhaps there maybe a way to shrink the frame.

Any feedback would be very much appreciated

From

oS_Narley
0
Comment
Question by:oS_Narley
2 Comments
 
LVL 7

Accepted Solution

by:
rangasuman earned 800 total points
ID: 16664678
I dont think it is legal to break out of the frames since you are using their services. But, for educational purposes, the solution is as follows.

<head>
<script language="JavaScript" type="text/javascript">
<!--
function breakout_of_frame()
{
  if (top.location != location) {
    top.location.href = <Replace this with your long URL or IP> ;
  }
}
-->
</script>
</head>
<body onload=breakout_of_frame()>

Hope that helps.
0
 

Author Comment

by:oS_Narley
ID: 16674906
Thanks very much worked like a charm, rangasuman.
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Color can increase conversions, create feelings of warmth or even incite people to get behind a cause. If you want your website to really impact site visitors, then it is vital to consider the impact color has on them.
Although a lot of people devote their energy toward marketing for specific industries, there are some basic principles that can be applied to any sector imaginable. We’ll look at four steps to take and examine how those steps were put into action fo…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses
Course of the Month15 days, 16 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question