PDA

View Full Version : Javascript pages v static HTML


Jeremy100
01-03-2007, 04:26 AM
Can anyone help / advise?

Do search engines - Google - index Javascipt seperate pages in a
different way to static HTML pages?

I am doing some work on a site
which features quite a few Javascript pages instead of
static HTML and need to assess if it would be better
to advise changing the Javascript pages to static HTML.

Thanks

evilgreenmonkey
01-03-2007, 06:53 AM
Hi Jeremy,

As long as your content is not enclosed in the JavaScript code, this will not prevent the search engines from indexing your site.

A majority of JS based navigation systems are not search engine friendly however, so you should be careful when choosing such a menu. The spiders will not actually execute your JavaScript code to index it, therefore it is important that you site is usable without JS turned-on.

I'd recommend placing the code in a separate .js file rather then in the HTML file as well. You can test how your site works without JavaScript by turning Java/JavaScript off in your browser settings and then visiting your site.

:cool:

Rob