+ 3

When <noscript> tag should be used?

6th Jan 2020, 1:57 PM
Arijit Mondal
Arijit Mondal - avatar
5 ответов
+ 2
When ever you include a script, after that include < noscript>. Optional but better to include. It executed in browsers which does not support script elements. So it used to tell the users that scripts not supporting by the browser. If script supported by the browser, then only script executed, not <noscript>. Hoping it helps...
6th Jan 2020, 2:18 PM
Jayakrishna 🇮🇳
+ 2
Give me example how should i use it?
6th Jan 2020, 2:19 PM
Arijit Mondal
Arijit Mondal - avatar
+ 2
<script> document.getElementById("id").innerHTML = "Hello world!"; </script> <noscript>Sorry, your browser does not support JavaScript!</noscript>
6th Jan 2020, 2:26 PM
Jayakrishna 🇮🇳
+ 1
<html> <head> <title>noscript example</title> <script type="text/javascript"> alert("Hello, world!"); </script> </head> <body> <noscript><p>Your browser doesn't support Javascript!</p></noscript> </body> </html>
6th Jan 2020, 2:28 PM
RED
RED - avatar
0
Thanks for this... I am very thankful to you
6th Jan 2020, 2:27 PM
Arijit Mondal
Arijit Mondal - avatar