Welcome to WebmasterWorld Guest from 3.227.249.234

Forum Moderators: open

Message Too Old, No Replies

Java Redirect is this a problem

java redirect affect se's

     
10:18 am on Nov 18, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Nov 15, 2003
posts:329
votes: 0


i have this cos on my page to redirect users. I have used a virtual spider to test this page and the redirection doesnt show up as a link. Would this code affect SE's. Seeing that google, yahoo, msn and hotbot are the only SE's that for some reason havent listed my site.

this is the code that I have on my page.

<SCRIPT LANGUAGE="JavaScript">
<!--
if ((self.location!= 'http://example.com/') && (top.location == location)) {
self.location = 'http://example.com/';
}
//-->
</SCRIPT>

11:06 am on Nov 18, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 27, 2002
posts:959
votes: 0


Some people say spiders (especially Google) are able to parse (i.e. recognises URLs) JS redirects, but nothing certain about that. If you want to be sure spiders find the other page, include a <noscript> tag. It will also help users with JS disabled.
11:17 am on Nov 18, 2003 (gmt 0)

Full Member

10+ Year Member

joined:Nov 15, 2003
posts:329
votes: 0


so its a possability but no one knows for sure.
I'll add a noscript, thanks.