Pr.Pg Next Pg

<NOSCRIPT>..</NOSCRIPT> tag tutorials

  • The <NOSCRIPT> tag is used to provide an alternate content for users that have disabled scripts in their browser or have a browser that doesn’t support client-side scripting.

  • The <NOSCRIPT> tag is supported in all major browsers.

  • The <NOSCRIPT> element can contain all the elements that you can find inside the <body> element of a normal HTML page.

  • The content inside the <NOSCRIPT> element will only be displayed if scripts are not supported, or are disabled in the user’s browser.

 

Sr No

Attributes

Descriptions

1

ID

This attribute specify a unique id for an element in document.

2

style

This attribute specify an inline CSS style for an element.

3

title

This attribute specify extra information about an element.

4

draggable

This attribute specify whether an element is draggable or not.

5

hidden

This attribute specify that an element is not yet, or is no longer, relevant.

6

contextmenu

This attribute specify whether the content of an element is editable or not.

7

spellcheck

This attribute specify whether the element is to have its spelling and grammar checked or not.

8

lang

This attribute specify the language of the element's content.

 

9

tabindex

This attribute specify the tabbing order of an element.

 

Syntax:

<BODY>

<SCRIPT>….</SCRIPT>

<NOSCRIPT>…</NOSCRIPT>

</BODY>

 

 

Example: HTML script program to demonstrate noscript element

Output:
Note: Now disable the Javascript and reload the browser then it will show the following output:
  • Below is the step to disable and enable Javascript the Google chrome browser:

  • Click on customize and control Google Chrome the click on Settings as below:

  • Next click on Show advanced settings...

 

  • Then next in Privacy section click on Content settings..

 

 

  • Now in Javascript section select “Do not allow any site to run JavaScript” and then click on Done and if you want to enable Javascript then in Javascript section select “Allow all sites to run JavaScript (recommended)” and then click on Done.

 

Pr.Pg border                                              Next Pg