homepage Welcome to WebmasterWorld Guest from 54.145.191.14
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Javascript Refresh
Will bots crawl this page
Blade

10+ Year Member



 
Msg#: 538 posted 9:23 am on Aug 20, 2003 (gmt 0)

Given that most bots including google donít follow a redirect created by javascript, would the bot follow the links on the page where the redirect code is on?

For instance, I have several good pages of links pointing to the rest of my site but these have no content. I'm thinking of using a JavaScript redirect on these pages to send the user back to the home page if he stumbles across these pages:

<script language="JavaScript" type="text/javascript">
window.location="/";
</script>

But I do NEED google to crawl these pages to follow the links. So will google do just that or see the page as a problem?

Any insight greatly appreciated.

 

MonkeeSage

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 538 posted 9:55 am on Aug 20, 2003 (gmt 0)

There is a question as to whether Google even indexes JavaScript yet (Link [webmasterworld.com]), so I'm perrty sure it doesn't execute it. But if a human reviewer checks your pages they will see what is happening rather quickly and you could get penalized for cloaking I think.

Jordan

claus

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 538 posted 10:03 am on Aug 20, 2003 (gmt 0)

I'm quite sure that Gbot and all the other bots will index that page even if you put a javascript location redirect in it. This is independent of whether the javascript gets read or not, as it still will not be executed.

They will not get thrown back to your home page instantly like the users that have javascript enabled. Users without javascript enabled will also see the page though.

/claus

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved