homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

Can window.location be seen
window.location, href

 4:00 pm on May 9, 2005 (gmt 0)

I know search engines do not crawl javascript well (such as DHTML menus). Does anyone know / or have any idea if they can see links that use window.location.href For example--

A normal link would read:
<A href='mypage.htm'>Link Text</a>

One using window.location could read

<A href='javascript:"location.href('mypage.htm');>Link Text</a>



 8:30 pm on May 9, 2005 (gmt 0)

Hi Rickfb, welcome to the forums.

if you want to make sure SEs follow your JS links code them like this (if that's possible):

<a href="mypage.htm" onclick="window.location='mypage.htm';return false;">Link Text</a>

Users with JS disabled and bots follow the first one and users with JS enabled follow the second one.
If it's not possible to code them like that (in a menu) you should use <noscript></noscript> tags with your links in there.


 1:46 pm on May 13, 2005 (gmt 0)

Thanks for the specific info. I KNEW this was the place to come. I work on the "wordsmithing" aspect of SEM and had the question posed to me by a collaborative by a programmer.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
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