Forum Moderators: open

Message Too Old, No Replies

noscript tag - what is the purpose

can someone explain

         

spherica

1:35 am on Feb 25, 2003 (gmt 0)

10+ Year Member



Curiosity has gotten the better of me yet again.

Can someone explain what <noscript></noscript> is

is this a good or bad thing and what does it do?

jdMorgan

1:56 am on Feb 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



spherica,

javascript code contained within the <script> tag is executed by the browser if javascript is enabled.
html code contained within the <noscript> tag is rendered by the browser if javascript is disabled.

It's a good idea to provide alternate functionality using the <noscript> tag for your visitors who do not have javascript enabled.

HTH, Jim

keyplyr

7:09 am on Feb 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month




That said, if you include any of your popular search terms within the <noscript></noscript>, or even if you don't, watch out the tag is not used too high on the page, for some bots may use the content from these tags as the site snipet in the SERPS.

Always get a chuckle when I see "You Must Enable JavaScript To View My Page" as a site's description.

Sinner_G

8:04 am on Feb 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is also a good way to get robots to follow links which are served to regular users (i.e. humans using a browser with javascript enabled) as js links.

edit_g

9:19 am on Feb 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I'll second Sinner_G- that's what we use it for as well - and it works.

Do you think they (er... Google) look down on this as spam? I guess they can't because it is improving relevancy - they would never find the pages otherwise.

TheDoctor

9:49 pm on Feb 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Always get a chuckle when I see "You Must Enable JavaScript To View My Page" as a site's description.

I always gasp when I see this at all. Don't these people want their sites to be seen?

Incidentally, Netscape 2 executed both <script></script> and <noscript></noscript> code - but that information is probably of no practical use at all now, except to calculate how old I am.

spherica

10:47 pm on Feb 25, 2003 (gmt 0)

10+ Year Member



Wow thanks for the great reply ppls

g1smd

8:24 pm on Feb 26, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



One more thing:

<script> can go in either the <head> or <body> of the code.

<noscript> can only ever go in the <body> section.