PDA

View Full Version : Javascript built frame


DaveK
09-12-2006, 05:59 AM
I've had a recommendation to improve the SEO for a site that seems like a bit of a cheat but I'm assured that it works.

The page uses javascript to build a single framed frameset into which the normal page is loaded. The rest of the document contains optimised text and links which becomes the NOFRAMES section of the page. Example:


<HTML>
<HEAD>
<title.....>
<meta .....>
</HEAD>

<script language="JavaScript">
document.write('<FRAMESET ROWS="1024,*" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0">');
document.write('<frame name="topFrame" scrolling="YES" noresize src="/web.nsf" frameborder="0">');
document.write('<noframes>');
</script>
<NOSCRIPT>
<body>

Optimised text & link heavy version of the page here

</body>
</NOSCRIPT>

<script language="JavaScript">
document.write('</noframes>');
document.write('</frameset>');
</script>
</HTML>

Is this a legitimate technique or could the site be ranked down for it?

evilgreenmonkey
09-12-2006, 06:26 AM
Hi Dave,

This is known in the industry as "cloaking" and is not recommended for your main website. Search Engines may be fooled for a month or two, although usually find you in the end and blacklist your site from their index.

This blog post by Matt Cutts at Google is vaguely similar to the method you're highlighting here:
http://www.mattcutts.com/blog/seo-mistakes-sneaky-javascript/

:cool:

Rob