Welcome to WebmasterWorld Guest from 54.144.107.83

Forum Moderators: open

Message Too Old, No Replies

Javascript Refresh

Will bots crawl this page

     
9:23 am on Aug 20, 2003 (gmt 0)

New User

10+ Year Member

joined:Feb 20, 2003
posts:20
votes: 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.

9:55 am on Aug 20, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 26, 2003
posts:881
votes: 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

10:03 am on Aug 20, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 15, 2003
posts:2395
votes: 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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members