Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How Googlebot Handles Javascript

Searching Google...

How Googlebot Handles Javascript

by  KABUSA  Posted    (Edited  )
I want to touch on the subject above.
I use a frameset shopping cart.
I use a small substitute body tag using an inline script to check for frameset and if not present to call the framset page. This has worked great until about a year ago when I found my position in google searches, slipping away. I just recently figured out why. Google is reading the inline script and jumping off to the frameset page, never recording any content on the initial page!

No other search engine is doing this. Oddly Google continues to claim they do not read script, but the cached page shows a manufactured base tag that could only be created by executing the inline script.

I just wanted to pass this on in case anyone else was experienceing it. I have measurably lost business as a result of it. I have removed the script and now use Onload in the body tag to do it. Unfortunately the page loads, blinks and reloads, but at least, when google gets around to reading the page again, it will be forced to read the whole page.

Kevin

info@kabusa.com
www.kabusa.com
sept 27, 2007

<BODY BGCOLOR="#00C0C0" ONUNLOAD='status="";'>
<SCRIPT LANGUAGE="javascript" TYPE="text/javascript">
<!-- hide script
//inline script builds frameset if neccesary---------------------------
//won't block netscape 4.6 print function
var frame_builder = 'frameset.htm';
if (self.name != "bottom")
{window.location.replace(frame_builder +'?'+ window.location.pathname);}
document.write('<BODY BGCOLOR="#00C0C0" ONUNLOAD="'+'defaultStatus=\'\';">');
document.close();

// -->
</SCRIPT>
Register to rate this FAQ  : BAD 1 2 3 4 5 6 7 8 9 10 GOOD
Please Note: 1 is Bad, 10 is Good :-)

Part and Inventory Search

Back
Top