HTML noscript
The function of HTML noscript is used to determine the alternative to be displayed when the browser does not support HTML script . The most common way to display is the prompt text. For example, when there are many JavaScript special effects in the webpage that need to be displayed, but the user-side browsing Browser (Browser) can’t support or recognize, it is very likely that special effects will fail. At this time, the web page can tell the user that his browser does not support website special effects through the <noscript> tag. For older browsers, There are also tips when writing scripts, which will be mentioned in the example.
HTML noscript basic syntax
<noscript> ... the content to be displayed... </noscript>
The standard noscript tag should start with <noscript> and end with </noscript>. There is no need to use alert or document.write to display the content in the middle. Just write the text directly in it. The function of noscript is similar to HTML img. The meaning of the alt text in the image tag .
HTML noscript example
<!--
document.write('Your browser supports this script');
-->
</script>
<noscript>Your browser does not support this script</script >
Further reading
- HTML script
Post a Comment
0 Comments