Pretty much in any webpage you look, 3 languages are used:
-
HTML: This is a markup language and we use it to create
the content and the structure of a webpage. -
CSS: This is a stylistic language and we use it to work on
the layout and the style of a web page. So the façade of a webpage is
mainly the art of the CSS. -
JavaScript: This is a programming language and is used to set the
behavior of a webpage.
For example we click on a menu or an icon and a sub-menu or a form appears or a new set of information loads in the page without refreshing the entire page. Or with the help of JavaScript we can track the position of mouse, where the user clicks and essentially store how the users interact with our webpage. Designing and allowing these kinds of interactions with a webpage is the work of JavaScript.
Actually the capabilities of the JavaScript are beyond just a paragraph and this entire tutorial is written to just show you how much you can do with this language. So as we go along, you’ll see the areas in which the language shines.
In your browsers you have this ability to disable JavaScript and not letting websites you are viewing to use it.
Just to see how important JavaScript is for websites, let’s disable it and browse a few websites:
For this example, I’m going to use the Chrome browser:
First go ahead and in the link below, install the Web Developer extension for the Chrome browser:
https://chrome.google.com/webstore/detail/web-developer/bfbameneiokkgbdmiekhjnmfkcnldhhm
After the extension has been installed, go to the Disable tab and disable the JavaScript just like in the picture below:
