Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Frame Depreciation

Is this syntax invalid now?

2:03 am on Aug 18, 2010 (gmt 0)

New User

5+ Year Member

joined:Apr 30, 2009
posts: 30
votes: 0

I know frames are the bain of web existence but I have a friend with a frame built site that quit working for him recently. Long story short, his pages that are supposed to load inside the main content frame aren't working. One such header looks like this:

<link rel="shortcut icon" href="http://www.example.com/favicon.ico" />
<title>Example &ndash; Media</title>
<script type='text/javascript'>
if(self.location==top.location) top.location.replace('http://www.example.com/index.php?frame=' + self.location) ;
<meta name="keywords" content="" />
<meta name="description" content="" />

It seems like pretty simple js, landing on this page should load it into the frame on the index page no? I'm having a hard time getting that to load itself into the frame.

I have nav links on the index page that target="content" (content being the frame name) and they work fine. Thanks in advance!

--apologies for frames--
8:13 am on Aug 18, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 5+ Year Member

joined:Feb 12, 2006
votes: 22

on a side note... that doesnt seem very secure to me. people could load their own page into your iframe.

what happens if they visit the following URL:


if they fill their page with links to their site, they will have a bona fide URL on your site with a load of backlinks pointing straight to them. it wouldn't be a problem getting it indexed. all they would have to do is link to it from somewhere else.
8:19 am on Aug 20, 2010 (gmt 0)

New User

5+ Year Member

joined:Apr 30, 2009
votes: 0

Good point, any suggestions for where to start in making it more secure?
3:17 pm on Aug 20, 2010 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 15, 2003
votes: 5

You could start by having index.php verify that the URL to be loaded into the <frameset> resides within the parent domain.

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members