Site Server 3.0 Search Cannot Crawl URLs Written in JavaScript Statements

ID: Q244507


The information in this article applies to:
  • Microsoft Site Server version 3.0


SYMPTOMS

Site Server 3.0 Search is not able to follow hyperlinks with JavaScript in the HREF code, for example:


<a href="javascript:MyFunction();">Text goes Here</a>
<a href="javascript:document.url ='coolpage.asp';">Cool Page</a> 
Site Server Crawl does not index the destination pages. See the "More Information" section of this article for an example.


RESOLUTION

To resolve this problem, obtain the latest service pack for Site Server 3.0. For additional information, please see the following article in the Microsoft Knowledge Base:

Q219292 How to Obtain the Latest Site Server 3.0 Service Pack



STATUS

This problem was first corrected in Site Server 3.0 Service Pack 3.


MORE INFORMATION

Example

In the following HTML document, the crawler follows only the link to http://www.msn.com/, but not the link to http://www.microsoft.com/:

<html>
<head><title>Test</title></head>
<body>
<a href="http://www.msn.com/">Normal link to MSN</a>
<p>
<a href="javascript:document.URL='http://www.microsoft.com/';">JavaScript link to Microsoft</a>
</body>
</html> 
What the crawler should do is translate

<a href="javascript:document.URL='http://www.microsoft.com/';"> 
into

<a href="http://www.microsoft.com/"> 
and follow that link.

Additional query words:

Keywords : ss3sp3fix
Version : winnt:3.0
Platform : winnt
Issue type : kbprb


Last Reviewed: October 27, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.