Fallback Content

People can turn JavaScript off in their browser software which can cause your document to appear broken or incomplete to them if you are using JavaScript to render content or control things. There are also situations in which automated software is attempting to index your document’s content and it may not be able to process JavaScript.

HTML sports a JavaScript content fallback feature in which anyone without JavaScript enabled will be served up your alternate content, while regular users see the JavaScript enabled content. This is done using the HTML <noscript> element.

<body>

 

<script>

 

document.write("Scripting works in your browser.");

 

</script>

 

<noscript>

 

JavaScript is not enabled in your browser.

 

</noscript>

 

</body>

 

If the user has JavaScript enabled the <script> element will process while the <noscript> element is completely ignored. If the user does not have JavaScript enabled the <script> element gets ignored, and the <noscript> element will process.

renewdev

I Am Developer And Want To Share My Knowledge With The World..:) ;) . I Have Another Social Networking Website (Renewchat) And For Designing Or Developing Of Website Purpose You Can Contact Me On Renew Coder .. :) ;)

Leave a Reply

Your email address will not be published. Required fields are marked *