HTML - tags - noscript

revision:


Content

"noscript" tag : defines alternate content when scripts are not supported syntax some examples


"noscript" tag : defines alternate content when scripts are not supported

top

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". When used inside "head", the "noscript" element can only contain "link", "style", and "meta" elements.

Attributes: the <noscript> element supports the global attributes.


syntax

top

<noscript> . . . </noscript>


some examples

top
code:
                    <script>
                        document.write("Hello World!")
                    </script>
                    <noscript>Sorry, your browser does not support JavaScript!< /noscript>
                
code:
                    <script  language="javascript" type="text/javascript">
                        document.write('JavaScript is enabled. Disable your JavaScript then reload this page');
                    </script>
                    <noscript>
                        Your browser doesn't support JavaScript or you have disabled JavaScript. Therefore, 
                        here's alternative content...
                    </noscript>