View Full Version : Does Jscript affect spider
izick
18-11-2002, 20:42/08:42PM
Does using javascripts or CSS code in the head of a web page affect how the spider reads the data on the page. For example if the spider is only looking at the first 1000 characters. Then this would affect the findings. But if the spider looked at the first 100 characters after the <body> tag then it wouldn't matter,,,or would it?
Advisor
18-11-2002, 22:24/10:24PM
Basically they ignore your javascript, but it's better to put it in a separate .js file if you can. It just make it easier for the spider to get to the "meat."
Jill
izick
18-11-2002, 22:45/10:45PM
Thank you...I have been inserting the script at the bottom of the page instead of at the top and dealing with the java error...
g1smd
19-11-2002, 17:30/05:30PM
JavaScript coded items need to have one of these two formats:
For one line references to external files use:
<SCRIPT type="text/javascript" language="JavaScript" src="filename.js"></SCRIPT>
<NOSCRIPT> ... HTML code for non-JS browsers here ... </NOSCRIPT>
Note that <SCRIPT> tags can go inside <HEAD> tags (best placed as the last item there), or in the <BODY> section; but that the <NOSCRIPT> tags can ONLY ever be placed in the <BODY> part.
For code that is embedded within the page use:
<SCRIPT type="text/javascript" language="JavaScript"><!--
... JS program code here ...
// --></SCRIPT>
<NOSCRIPT>
... HTML code for non-JS browsers here ...
</NOSCRIPT>
The Comment Tags: <!-- and // --> are especially important in the second one.
vBulletin® v3.8.3, Copyright ©2000-2010, Jelsoft Enterprises Ltd.