Pages

Tuesday, 30 October 2012

JavaScript



Introduction :
* JavaScript was developed by Netscape in 1995. At that time its name was LiveScript. Later on Sun Microsystems joined the Netscape and then they developed LiveScript. And later on its name is changed to JavaScript.
* JavaScript has three parts :
 1. Core : It includes operators, expressions, statements and subprograms.
 2. Client-side : It is a collection of objects using which one can have control over the browser and user-browser interaction is possible.
 3. Server-side : It is a collection of objects using which one can access the database on the server.

Uses of JavaScript :
Let us enlist some important applications of JavaScript by which we will understand the power of JavaScript. So that it can be used for web page designing.

1. JavaScript can be used as an alternative to Java applets. The Java applets need to be downloaded seperately even though they are embedded in XHTML, however JavaScript need not be downloaded and used as embedded in XHTML document.
2. JavaScript can get embedded in XHTML.
3. JavaScript can be effectively used for interaction with the users. The JavaScript support form elements such as button, textbox, menus and so on. Simple web applications such as calculator, calender can be developed using JavaScript.
4. Using Document Object Model (DOM) JavaScript can access and modify the properties of CSS (Cascading Style Sheet) and contents of XHTML document. Hence the static web document becomes dynamic.
5. JavaScript can be used to detect the visitor's browsers and can load the page accordingly.
6. JavaScript can be used to create cookies.
7. JavaScript are used to validate the data on the web page before submitting it to the server.

No comments:

Post a Comment