Java Script – Introduction
JavaScript is a scripting language for web. In 1995, JavaScript was developed by Netscape Communications Corp. At first, was referred to as LiveScript. Later Netscape decided to change its name to JavaScript because it was more influenced by the Java Programming Language. JavaScript was designed to add interactivity to HTML pages. We can embed JavaScript directly into HTML pages.
Many time people think JavaScript and Java Programming Language are same. But Java and JavaScript are two completely different languages in both concept and design. Java originally developed by Sun Microsystems (now part of Oracle Corporation)
Important uses of JavaScript
Control Browsers
JavaScript can open the pages in customized windows, where you specify if the browser’s buttons, menu line, status line etc
Browser Detection
JavaScript can detect the browser used by a visitor at your page. Depending on the browser, another page specifically designed for that browser can then be loaded.
Cookies
JavaScript can store and retrieve information on the visitor’s computer using cookies.
Validation
JavaScript can validate the user data (i.e. user input) before submit to server. This way e can save the server processing.