Javascript
Javascript is the third layer of the standard web technologies that lives on top of HTML and CSS.
Last updated
Javascript is the third layer of the standard web technologies that lives on top of HTML and CSS.
Last updated
JavaScript can manipulate the HTML elements and add interactivity.
For instance, you can use JavaScript to add interactivity to websites, validate forms or track users' actions on a website. So yeah, big part of web tracking is powered by javascript.
Some privacy zealots even block all javascript just as an adblocker to minimize their digital footprints.
If you want your web page to do more than just sit there and display static information, you need to implement JavaScript to make it more interactive.
So think of javascript as the third layer of the standard web technologies that lives on top of HTML and CSS.
So let's put Javascript in action, shall we?
We have already created a beautiful login page using HTML and CSS. Now we would like to verify whether the inputs we collect are indeed in the format we requested. We can set up a validation mechanism through Javascript. Thus, we can take a measure to ensure the accuracy and correctness of the data collected from the data subjects.
We can go even further and use more complex snippets of Javascript to measure the people who come to the page where the login form is located but did not provide any inputs.
So we might want to get some metrics and measure how well our registration form tunnel is working. By adding a tracking code, we can start measuring incoming visitors. We will need to obtain the explicit consent of the users in order to make the follow-up we want to carry out here in compliance with the law. We can start the user tracking we want to perform by adding the following piece of code to our registration form page.
So there you go, your first step into to start getting used to why you'd use JavaScript and what kind of things you can do with it.