+ 3

I know it is a silly question : what is the use of javascript in html codes as I saw many codes without j.s ?

14th May 2018, 11:43 AM
Hosny!
Hosny! - avatar
2 ответов
+ 1
JavaScript is a client-side oriented programming language. This means that when a user requests a page that contains JavaScript, the script is sent to the browser and then it is up to the browser to do something with it. Although there are many fully functional and high-quality webpages that do not have JavaScript, people use it mostly to give “behavior” to the webpage. In other words, JavaScript adds interactivity to the elements of your webpage without having having to re-load the page every time you want to load a new image for example. You can also add various responses to different actions that your visitors take, like pressing buttons or clicking in a specific area of the webpage.
14th May 2018, 12:05 PM
JackTheRapper
JackTheRapper - avatar
14th May 2018, 12:29 PM
Hosny!
Hosny! - avatar