I have JavaScript on all of my pages in the form of ads .. is it harmful for SEO ? How i can PUT the javascript code in an external file ? Thanks
Why would javascript be harmful? If you have links that are in javascript code, the search engines won't follow them but no harm is done.
why would a script language be any harm for your search engine ranks? i am not sure, maybe putting 2 much java is bad? never thought of it
I sometimes see sites that have >1000 lines of Javascript at the top of the page. When you externalize all the clutter, sometimes it can be a little of a boost in the rankings. But overall, my understanding is that spiders don't really bother with JS much. To externalize the javascript, just put the code in a new file (myscripts.js or something) and call it from the webpage with a <script language="JavaScript" src="myscripts.js"></script> Cheers
I don't see how javascript can be harmful since it is a very widely used code. and as semlady said simply ad src="file.js" into the script tag and then close it.
Yes you are absolutely right! and I think Javascript will not do anything harmful to Search Engines For example see the source page of Google's home page you may get the right answers and also I think Javascript will not be indexed by Search Engines
Javascript is not harmful, but you'll miss the SEO advantages that you get while using plain HTML/CSS when you use javascript.
just put it in the external css and make sure your site navigation doesn't use javascript and you should be fine.
Why would it be better to put all JS in an external file for SEO since all JS is ignored by SE spiders?
Well, that depends on whether or not you believe that keywords lose "impact" the farther down the page they appear. If you subscribe to the theory that keywords have more relevance near the top of the page, then 500 lines of javascript at the top of the file would be something you would want to avoid.
I've read somewhere that there shouldn't be too much javascript in your header .. other than that I dun think there's any problem with it ..
500 lines or 10 trillion lines is does not matter because it is ignored. We are not talking about placing content above the fold for human consumption here, we are talking about how a basic programming script reads and interprets a page.
JavaScripts are fine for end users. But if you are trying to reach SE and good placing, then forget using JavaScript. By that, it doesn't mean that you shouldn't use some of it, like in ads etc... But Do not build up your whole site with using JavaS.
Whether or not you believe it, it's not true: http://searchenginewatch.com/showPage.html?page=3624222 “CSS can also be used to hide text or abuse header tags which would then fall under the category of web spam. Some designers will use CSS to position content first in html thinking it helps with rankings (it doesn't). Finally the use of coordinates to hide text or stacking chunks of content on top of each other can be disadvantageous as engines can detect this as a spam technique.â€
<script src="/filename[dot]js" type="text/javascript"> or <script language="Javascript" src="/filename[dot]js" type="text/javascript"> Note: If you have Javascript in all pages, it can be harmful, spiders may have a difficulty in spidering javascript contents.
I agree on this part. Search engines do consider the keyword's prominence on the search engines. so if you have a very long line of javascript code at the top of your header, this makes it more difficult for the spider to crawl your targeted keywords which is in the body.