Post Page Advertisement [Top]

JavaScript is a script-based programming language that was developed by Netscape Communication Corporation. JavaScript was originally called Live Script and renamed as JavaScript to indicate its relationship with Java. JavaScript supports the development of both client and server components of Web-based applications. On the client side, it can be used to write programs that are executed by a Web browser within the context of a Web page. On the server side, it can be used to write Web server programs that can process information submitted by a Web browser and then update the browser’s display accordingly
Even though JavaScript supports both client and server Web programming, we prefer JavaScript at Client side programming since most of the browsers supports it. JavaScript is almost as easy to learn as HTML, and JavaScript statements can be included in HTML documents by enclosing the statements between a pair of scripting tags
<SCRIPTS>.. </SCRIPT>.
<SCRIPT LANGUAGE = “JavaScript”>
JavaScript statements
</SCRIPT>
Here are a few things we can do with JavaScript:
Ø   Validate the contents of a form and make calculations.
Ø   Add scrolling or changing messages to the Browser’s status line.
Ø   Animate images or rotate images that change when we move the mouse over them.
Ø   Detect the browser in use and display different content for different browsers.
Ø   Detect installed plug-ins and notify the user if a plug-in is required.
We can do much more with JavaScript, including creating entire application.
JavaScript Vs Java
JavaScript and Java are entirely different languages. A few of the most glaring differences are:

  • Java applets are generally displayed in a box within the web document; JavaScript can affect any part of the Web document itself.
  • While JavaScript is best suited to simple applications and adding interactive features to Web pages; Java can be used for incredibly complex applications.

There are many other differences but the important thing to remember is that   JavaScript and Java are separate languages. They are both useful for different things; in fact they can be used together to combine their advantages.
Advantages
Ø   JavaScript can be used for Sever-side and Client-side scripting.
Ø   It is more flexible than VBScript.

Ø   JavaScript is the default scripting languages at Client-side since all the browsers supports it.

No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib