Site Server 3.0 Search Cannot Crawl URLs Written in JavaScript Statements (244507)



The information in this article applies to:

  • Microsoft Site Server 3.0

This article was previously published under Q244507

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, click the following article number to view the article in the Microsoft Knowledge Base:

219292 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.

Modification Type:MajorLast Reviewed:1/5/2001
Keywords:kbprb kbSiteServ300sp3fix KB244507