Categories: Javascript

HTML noscript Tag

Share

For a browser which doesn’t support script or disabled scripts in their browser, the ‘noscript’ tag defines an alternate content for the users.

If scripts are not supported or disabled in the user’s browser, then, the content inside the ‘noscript’ tag will be displayed.

This can be placed in both <head> and <body>. For inside the <head> element, <noscript> must contain only <style>, <link> and <meta> elements.

So, the HTML <noscript> Element defines a section of html that to be inserted when a script type on the page is not supported or if the scripting is currently disabled in the browser.

Read Also: JavaScript onerror() method to handle error

Note: In HTML 4.01, the <noscript> tag only be used inside a <body> element, not in <head>. But, in HTML5, this tag can be used both inside <head> as well as <body>.
The <noscript> tag is not supported in XHTML.

Most of the browsers like chrome, edge, internet explorer, firefox, safari and opera supports this tag.

Example:

<script>
<!--
function showMsg() {
alert("Hello World!");
}
//-->
</script>
<noscript>Your browser does not support JavaScript! <a href="http://www.namasteui.com/">Click Here</a></noscript>

The combination of <noscript> with the jQuery detection covers most problems with help of corporate firewalls and browser settings or plugins.

Recent Posts

How to Find the Best SEO Consultant in Toronto to Boost Your Rankings

Introduction In today's digital age, having a strong online presence is crucial for businesses in…

4 hours ago

Sharing USB across networks

You may need access to a printer, scanner, webcam, or dongle connected to another computer.…

20 hours ago

Tourist Attractions: 5 Top-Rated Must-See Places in Dubai

From skyscrapers to endless deserts, from luxurious malls to Michelin star restaurants, Dubai has it…

21 hours ago

Fractional CTO Services: Catalyzing Growth in the Logistics Sector

In today's fast-paced digital world, the logistics and supply chain sector is encountering unprecedented challenges…

1 day ago

Email Marketing Professionals: Masters of Digital Connection

In the vast landscape of digital marketing, one strategy has stood the test of time…

1 day ago

How to Increase E-commerce Site Speed for Fast Conversions?

Website navigation and speed play a significant role in the success of online business. Attractive…

2 days ago