Forum Moderators: open

Message Too Old, No Replies

keywords inside a java script

keywords indexed in a java script

         

scorp22nd

11:46 am on May 4, 2005 (gmt 0)

10+ Year Member



Hello,
I was wondering if you have a site that has large java script coding with keywords within this script will these keywords be indexed or help in your ranking. Or are the words within java script ignored? I have two examples: example 1 <script language="javascript">my keywords1</script> will my keywords1 within be ignored? or would it be better to use the code example 2<script type="text/javascript">my keywords2</script> would putting the java type as text be better? Does example 1 or 2 be better for search engines? Or does it matter? Also note the java script codeing is between the <body> of the page. Thankyou.

orion_rus

2:55 pm on May 4, 2005 (gmt 0)

10+ Year Member



Search engines didn't recognize <script> information, what's why if you use javascript you need the same working script without java be putted in a <noscript> tags.
Good luck to you

scorp22nd

8:38 pm on May 4, 2005 (gmt 0)

10+ Year Member



I'm sorry but what you have said makes no sense. I read it over and over and still don't understand what you are trying to say. Please elaborate?

chris

orion_rus

6:52 am on May 5, 2005 (gmt 0)

10+ Year Member



Search engines ingores all javascript keywords
If you need information from javascript be indexed in a search engines you need to put this information also between <noscript></noscript> tag
Good luck to you

scorp22nd

8:52 am on May 5, 2005 (gmt 0)

10+ Year Member



thanks for getting back to me with advice. But so I understand how would you implement it? Basically I have a java script that extracts dynamic news information and would like the search engine to index it. Do I put it like this? <noscript><script language="javascript">my keywords1</script></noscript> Or do I put <noscript>keywords</noscript>before or after the java script? I'm just lost as to implement it so engines see the words between the javascript.
Thankyou much

Chris

Seige

11:47 am on May 5, 2005 (gmt 0)

10+ Year Member



<noscript>keywords</noscript>

orion_rus

2:08 pm on May 5, 2005 (gmt 0)

10+ Year Member



Ok let's think you have a vertical menu on javascript.
like this:
document.write("<a href='index.php'>Point 1</a>");
document.write("<a href='index2.php'>Point 2</a>");
document.write("<a href='index3.php'>Point 3</a>");
search engine didn't find this information in your page because it stays between <script> tags. Also he wouldn't search index.php,index2.php,index3.php, because he simple ignores this script and didn't notice this links.
To avoid this you need a <noscript> tag, this works then somebody put off javascript usage on a pages and this tag search engines didn't ignores, if you put a link to you index.php,index2.php,index3.php there search engine recongnize it and make search on this pages too.
Good luck to you

scorp22nd

2:09 am on May 7, 2005 (gmt 0)

10+ Year Member



Thanks for the help.

Rambo Tribble

3:34 am on May 7, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



That's not really what noscript tags are for. Noscript tags are used to surround content that will render if JavaScript is turned off, but will remain dormant if JavaScript is active. It is invalid markup to have noscript tags outside the body (though browsers don't seem to complain).

A meta tag is the place to put keywords, as in:
<meta name="Keywords" content="Oregon rivers, Northwest rivers, river flows, river gauges, river levels, water levels, stream flows, river data, hydrological data">