views:

553

answers:

4

I wanted to display a message on the top of my site when the javascript is disabled (just like on SO), but on google chrome is not working

+9  A: 

Looks that way.

You can use javascript to hide a 'noscript' message.

zaf
and if there is not going to be js, it is not going to be hidden, you're a genius
Omu
A: 

Hmmm... I've opened Google Chrome with Javascript issuing:

 c:\Documents and Settings\grzole\Local Settings\Application Data\Google\Chrome\Application>chrome -disable-javascript

And when visiting some <noscript> example found on Internet I can see the message:

http://www.java2s.com/Code/HTMLCSS/Object-Tags/noscriptExample.htm

http://www.java2s.com/Code/HTMLCSSDemo/noscriptExample.htm

So it looks like it's working. I have Google Chrome 2.0.172.39.

Grzegorz Oledzki
I have Chrome 4.1.249
Omu
+2  A: 

Odd. I can repro this in Chrome 4.1.249.1064 (45376)

I had trouble finding it, so here's how:

you can disable JavaScript on Chrome in Options > Under the Hood > Privacy > Content > Javascript >

Jeff Atwood
yes, that's how I disabled js in chrome, and SO didn't showed me the content of <noscript> tag, it works with the @zaf solution on my site
Omu
A: 

I can confirm this bug with current Chrome (4.1.249.1064). It seems not to be a Webkit issue because other webkit-based Browsers support the tag.

Although hiding the text with Javascript may be possible, it is not really an option; the noscript tag is part oof the w3c standard an so it should be supported by a browser that claims to be standards compliant.