June 15, 201016 yr hi IS there a way I can add an "alternative" thing to show as a fallback in case Javascript isn't enabled on a browser? Kind of like when an image can not be displaced and you use alt="image ofmy dog" for example? Specifically I use a Google Translate Tool on my website but being that some people disable scripts (mostly using Noscript) I want to show something in the place where the tool would normally be, e.g. text saying "you have Javascript disable, please enable to see the Google translate tool". Thanks
June 15, 201016 yr hi IS there a way I can add an "alternative" thing to show as a fallback in case Javascript isn't enabled on a browser? Kind of like when an image can not be displaced and you use alt="image ofmy dog" for example? Specifically I use a Google Translate Tool on my website but being that some people disable scripts (mostly using Noscript) I want to show something in the place where the tool would normally be, e.g. text saying "you have Javascript disable, please enable to see the Google translate tool". Thanks That's what the noscript tag is for: <html> <body> <script type="text/javascript"> document.write("Hello World!") </script> <noscript>Sorry, your browser does not support JavaScript!</noscript> <p>A browser without support for JavaScript will show the text in the noscript element.</p> </body> </html>
June 16, 201016 yr Author Hi Is there a way to make a pop-up little window saying "You can't see the JS" when JS is disabled? Instead of putting this notice on the site's page? Also, would you advise this, or are ALL popups annoying today?
June 17, 201016 yr Also, would you advise this, or are ALL popups annoying today? Most browsers have built-in pop-up blockers, so traditional pop-ups are a bad idea. By traditional, I mean opening a new page/window/tab. Showing an warning message via JavaScript (example) is not an option because JavaScript is disabled. So the best solution is to show an obvious message within the page, near the top. You could highlight it with a coloured background and/or give it extra whitespace to help it stand out. This is the message that Get Satisfaction shows when JavaScript is disabled:
Create an account or sign in to comment