Welcome to WebmasterWorld Guest from 35.171.45.91

Forum Moderators: open

Message Too Old, No Replies

Java Script

How much does this effect the spiders

     
6:51 pm on Jan 20, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 20, 2003
posts:46
votes: 0


I have a new customer and he wants a site that will have a fair amount of java script. I have heard that it will hurt our chances of good search engine rankings. Any comments?
7:00 pm on Jan 20, 2003 (gmt 0)

Junior Member

joined:Oct 22, 2002
posts:86
votes: 0


Javascript is fine as long as give the spiders <a href> links to follow elsewhere.

It is also a good idea to put your scripts in a .js file and refer to them

<script language="JavaScript" src="filename.js">

</script>

As opposed to filling your page with lots of fat bloaty code.

The noscript tag is also quite useful, and of course essential for people with non javascript enabled browsers.

7:09 pm on Jan 20, 2003 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 20, 2003
posts:46
votes: 0


If the spiders follow the href will they idex the part of the page you want them to idex?
7:16 pm on Jan 20, 2003 (gmt 0)

New User

10+ Year Member

joined:Oct 21, 2002
posts:18
votes: 0


WebMan61:

Not a direct answer to your JavaScript issue, but having a static html link to a Site Map could be an alternative for having certain section(s) of your desire to be crawled.

As for Site Map link on the Home page, it's a level 1 status, so in theory, a spider will follow the link and perhaps, will contuinue on with the crawling process for the links in the Site Map.

MHO HTH:)

8:14 pm on Jan 20, 2003 (gmt 0)

Junior Member

joined:Oct 22, 2002
posts:86
votes: 0


Webman61

Not sure if i follow your question re: "part of the page"

The spider will not index this

<a href="javascript:;" onClick="openaWindow('details.php?custid=2','pop','scrollbars=yes,width=600,height=380')" >

As all it will see will be this - javascript:;

Whereas if your noscript tag contained this

<noscript>
<a href="details.phpcustid=2" >
</noscript>

Then it will see the file and spider it.