Translate

Monday, 23 April 2012

Why do we need Javascript. Isn’t Html enough?


Why do we need Javascript. Isn’t Html enough?

While basic webpages can be designed with just the use of html or CSS, javascript allows designers and developers of the site to add some dynamic functionality. What does that mean? It means that the web page is able to perform certain actions after taking decisions based on user request or interaction with the page.
For Example- A drop down menu on a page enlists all the countries of the world. Through javascript programming the webdesigner can give the webpage the intelligence to decide what to do when a certain country is selected. Lets say the user selects USA, in the next option ‘Select your state’, the webpage automatically populates it with names of the all the US states. Similarly if Australia is selected as a country, the webpage would display another set of states in the ‘select your state option’.

No comments: