Hello and welcome to the Webmasters Forums!. This is the best place to get webmasters resources for free. Get $2 for free today, read more - Make your payment today. Download premium and professional templates for free. Get free web hosting without ads, read more. You can get lot more by simply join with this forum. To gain full access to the forums you must sign up for a free account.


Post Reply  Post Thread 

Break out frames (javascript)

Post Bank
Posting Manager
******

Posts: 995
Group: Forum Team
Joined: Sep 2006
Status: Online
Make money from now. You can make money just for posting on this forum. Every discussions on this community gives you more money. $2 minimum payout. So get your payment today, SignIn with this forum.

Signin to Remove this Post

godkillah
Senior Member
****


Posts: 261
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 3
Points: 183 (Donate)
Post: #1

Break out frames (javascript)


I noticed someone already posted a way to do this but my way is better in my opinion as it does still allow you to frame your own pages.

how are we going to do this?
we will see if the top location matches the host of your site, if not it must be a frame by someone else.

<script>
/* Break out frames by Godkillah
from phantom-designs.net */

if(!top.location.href.match(location.hostname) && location.href!=top.location.href){
top.location.href=location.href
}
</script>


29-09-2007 03:07 AM
Find all posts by this user Quote this message in a reply
Cedik
Moderator
*****


Posts: 424
Group: Moderators
Joined: Aug 2007
Status: Away
Reputation: 2
Points: 575 (Donate)
Post: #2

RE: Break out frames (javascript)


Ok, I'm quite a n00b, I must admit.
I know what frames are, but how will this help me? What is this java script good for?


MyBB.ro|Extra.animezup.com|Picture with me ^^|Animezup.com|Forum.animezup.com|Manga-anime.ro|My blog^^
30-09-2007 04:08 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ivenms
Administrator
*******


Posts: 2,179
Group: Administrators
Joined: Sep 2006
Status: Offline
Reputation: 14
Points: 4389 (Donate)
Post: #3

RE: Break out frames (javascript)


Cedik Wrote:
Ok, I'm quite a n00b, I must admit.
I know what frames are, but how will this help me? What is this java script good for?


This helps your sites when your pages are shown on other site's frames. Many top sites, directories, ect.. shows their listed sites under frames. Putting this code on your page helps to remove those pages and shows your pages fully to the browser window.


Read: General Rules & Policies before posting.
Make Money By Posting | Earning and Exchanging Points | Add Your Links
30-09-2007 08:40 PM
Find all posts by this user Quote this message in a reply
Lord_Daksh
Posting Freak
*****


Posts: 643
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 0
Points: 16 (Donate)
Post: #4

RE: Break out frames (javascript)


but how it can help us?? where do we need to paste this code?? in which part of our html page???? has anyone tried it???


EARN EASY 50$ IN 10 DAYS!
FREE CALLS,GPRS,SMS,MMS TRICKS,FULL MOVIES,FREE RAPIDSHARE
80$ IN 1 DAY! 20$/REFERRAL!!
19-11-2007 01:50 PM
Visit this user's website Find all posts by this user Quote this message in a reply
shadav
The Forgotten One
******


Posts: 391
Group: Super Moderators
Joined: Oct 2006
Status: Offline
Reputation: 2
Points: 1058 (Donate)
Post: #5

RE: Break out frames (javascript)


i would assume you will put it in the header of your files

so between the <head> and </head> tags....


Foamy Fanatics Fan Site
Webmasters Resource Forum Photos For Sale
20-11-2007 01:00 AM
Visit this user's website Find all posts by this user Quote this message in a reply
godkillah
Senior Member
****


Posts: 261
Group: Registered
Joined: Sep 2007
Status: Offline
Reputation: 3
Points: 183 (Donate)
Post: #6

RE: Break out frames (javascript)


it can be anywhere but its best to put it above all html as it will load very quickly and the user might not even notice it happening


This post was last modified: 21-11-2007 03:48 PM by godkillah.

21-11-2007 03:47 PM
Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Awesome Javascript Clock spartan 4 191 22-11-2007 02:32 AM
Last Post: ivenms

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites
Rate This Thread:

Forum Jump:

Sign In to Remove Ads

Download 1000's of web templates. Unlimited access!
World's Best Web Hosting
Website of the Month

Create-a-Page for Free
SOTM June 2008


Accepting Submissions
for July 2008
Resources

Recommended Sites:



Visit our Sponsors!

Current time: 29-08-2008, 11:45 AM


Copyright © 2002-2008 MyBB Group
Powered By MyBB