+ 3
When <noscript> tag should be used?
6 Answers
+ 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...
+ 2
Give me example how should i use it?
+ 2
<script>
document.getElementById("id").innerHTML = "Hello world!";
</script>
<noscript>Sorry, your browser does not support JavaScript!</noscript>
+ 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>
0
Thanks for this... I am very thankful to you