Detecting browsers that don't support JavaScript
In this day and age most browsers have javascript unless the user manually disabled it. It's important for us to validate that our site will work for users without JavaScript (even if not well). Most search engines scan the web with javascript disabled so it is important for us to make it as accessible as we can to them.
Video Transcript
00:00Alright, so we're back. So in our last video, we looked a little bit more deeply into the script tag and saw the different
00:06ways you could work within the different position that it could be in. The next thing that I wanted to say is that some
00:11browsers don't support JavaScript and those browsers
00:16could get, well, what do we do in those scenarios?
00:19So HTML has a solution for that which is called NoScript. Now NoScript will only render
00:25if the browser user doesn't have script. Now obviously, well, I don't know if obviously, but in this day and age
00:32script, no script is the tag. No script. Now in this day and age, almost every single browser has
00:39script unless the user specifically deliberately cancelled JavaScript.
00:43But with that said, you could always put some sort of a note saying if you don't
00:48this site only works with JavaScript. This site only works on browsers
00:54that support JavaScript.
00:57Once I do that, it's going to be completely invisible to our users.
01:01But if our users by any chance are in a browser that does not support JavaScript and we click on refresh
01:06but their browser did not have JavaScript, they would see that message coming up.
01:09But in our case, because our browser does have JavaScript, we won't see it.
01:14Okay, I wanted to say one more thing about those users that don't have JavaScript and with that
01:19we're going to introduce a new topic, which is going to be commenting and we're going to see that in the next video.
01:24It's going to be a short fun video.
