Click to See Complete Forum and Search --> : JS links and SEs


terraling
05-23-2005, 07:50 AM
I have simple pages for older browsers and fancier versions for more modern browsers (with JS enabled), and I know the SEs can't see the content in the fancy pages and I want to make sure they (the SEs) go to the simple pages.

If I use this trick:

<a href="URL:simple page" onClick="window.location='URL:fancy page'; return false">Enter site here...<\a>

will the SEs follow the <a> link or the onClick link?

I've been surprised how 'clever' the SEs are so far (if JS browser display for oldLinks = 'none', display newLinks instead, SEs follow the newLinks...)

Thanks for any help...

phpnovice
05-23-2005, 08:40 AM
Search Engine's ignore JavaScript.

terraling
05-23-2005, 10:19 AM
Search Engine's ignore JavaScript.

Not true in all cases. Digging around with real world results I've established that MSN search, Ask/Teoma ignore JavaScript but the holy grail of Google is cleverer than that and follows JS links.

I was hoping someone might know if the way of writing the links in my original post would send Google to the <A> link or the onClick link... Otherwise I'll just have to suck it and see, though I'll have to wait 2 months before it crawls around to see the results (and another 2 to undo them if it doesn't work).