Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I display html within chrome's noscript tag?

When I view noscript in Chrome I'm seeing raw html displayed when JavaScript is turned off.

This:

<!DOCTYPE html> <head></head> <body> <noscript>     <div>No Javscript</div> </noscript> </body> 

Will display:

<div>No Javscript</div> 

This used to work, so I'm guessing there was a regression, but I can't find anything about it on the web. In other browsers(safari, firefox), I don't see the HTML. I'm using Chrome 26.0.1410.43 on OS X 10.7.5

like image 512
ActiveApathy Avatar asked Apr 04 '13 00:04

ActiveApathy


People also ask

How do you write noscript in HTML?

The <noscript> tag defines an alternate content to be displayed to users that have disabled scripts in their browser or have a browser that doesn't support script. The <noscript> element can be used in both <head> and <body>.

Why noscript tag is used in HTML?

HTML <noscript> Tag. The <noscript> tag in HTML is used to display the text for those browsers which does not support script tag or the browsers disable the script by the user. This tag is used in both <head> and <body> tag. Note: This tag is used in those browsers only which does not support scripts.

Does noscript works even with browsers that don't recognize the noscript tag?

The HTML <noscript> tag is used to handle the browsers which do recognize <script> tag but do not support scripting.


1 Answers

Refreshing the page twice fixes this issue.

And it only appears when you first switch to disabling javascript (i.e. someone who browses with javascript disabled would not experience it)

like image 131
tocallaghan Avatar answered Sep 21 '22 05:09

tocallaghan