Monday, October 12, 2009

JavaScript in Web Site

JavaScript was developed by Brendan Eich under the name of Mocha, which later renamed to NiveScript, and finally JavaScript.

JavaScript was designed too add interactivity to HTML pages. This JavaScript is a scripting language. This scripting language refers to a light weighting programming language. This is embedded directly into HTMLpages.

Features in JavaScript:
Basically it support all the Structured Programming language that is it will have the syntax of if statement, while loops, switch statements etc, it gives the HTML designers a programming tools, basically HTML authors or normally not programming, but JavaScript is a scripting language, which has very simple syntax, it can put dynamic text in JavaScript, this JavaScript can be write in HTML elements, this JavaScript can be used to validate the data that is when it is submitted to the server, is helps the server for extra processing;
Main Features of JavaScript
Imperative & structured
Dynamic
Functional
Prototype based
Miscellaneous
Vendor-specific extensions
JavaScript support the structured programming and the syntax of c, however support block-level scoping with the let keyword. JavaScript makes the distinction between expression and statements.
Dynamic typing as it the scripting language type is associated with the values not variables.
In JavaScript is almost entirely object based it is an associative arrays, that is augmented with prototypes.
In JavaScript includes an eval function that can execute statements providing as string at run time.
The primary use of JavaScript is to write functions that are based on embedded in included from HTML, and interact with the Document Object Model (DOM).opening or popping up new window with programming control over the size,position,and attributes of the new window. Validation of web form input values to make sure that they will accept before they are submitted to the server. Changing images as the mouse curser moves over them this effect is often used to draw the users attention to important links displayed as graphical elements.




A JavaScript engine is an interpreter that interprets JavaScript source code and executes the script accordingly. The first JavaScript engine was created by Brendan Eich at Netscape Communications Corporation for the Netscape Navigator web browser The engine, code-named Spider Monkey is implemented in C. It has since been update to conform to ECMA-262 Edition 3. The Rhino engine, created primarily by Norris Boyd is a JavaScript implementation in Java. Rhino, like Spider Monkey,

No comments:

Post a Comment