Open CSS

Full Version: What is JavaScript?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Javascript is an easy-to-use programming language that can be embedded in the header of your web pages. It can enhance the dynamics and interactive features of your page by allowing you to perform calculations, check forms, write interactive games, add special effects, customize graphics selections, create security passwords and more.
Javascript is a programming language that is used to make web pages interactive. It runs on your visitor's computer and so does not require constant downloads from your web site.
JavaScript is a scripting language. You could even say that JavaScript is rather an extension to HTML than a separate computer language. It's so tightly integrated with HTML that you could call it "JavaScript markup language." JavaScript coders don't care too much about real programming, they just make different nice effects by inserting small JavaScript code fragments into their Web pages.
Java is an Object Oriented Programming (OOP) language created by James Gosling of Sun Microsystems. JavaScript was created by the fine people at Netscape. JavaScript is a distant cousin of Java. It is also an OOP language. Many of their programming structures are similar. However, JavaScript contains a much smaller and simpler set of commands than does Java. It is easier for the average weekend warrior to understand.

The main difference is that Java can stand on its own while JavaScript must be placed inside an HTML document to function. Java is a much larger and more complicated language that creates "standalone" applications. A Java "applet" (so-called because it is a little application) is a fully contained program. JavaScript is text that is fed into a browser that can read it and then is enacted by the browser.

Java must be compiled into what is known as a "machine language" before it can be run on the Web.
JavaScript is text-based. You write it to an HTML document and it is run through a browser. You can alter it after it runs and run it again and again. Once the Java is compiled, it is set. Sure, you can go back to the original text and alter it, but then you need to compile again.
Java applets run independent of the HTML document that is calling for them.

The delivery of the applet is done through a download. The HTML document calls for the application, it downloads to the user's cache, and waits to run. JavaScript is wholly reliant on the browser to understand it and make it come to life.

So, what are the benefits of using one over the other? There are several. If you can understand Java, it is amazingly versatile. Because of the size and structure of the language, it can be used to create anything from small Web page events to entire databases to full browsers.

JavaScript's main benefit is that it can be understood by the common human. It is much easier and more robust than Java. It allows for fast creation of Web page events. Many JavaScript commands are what are known as Event Handlers: They can be embedded right into existing HTML commands. JavaScript is a little more forgiving than Java. It allows more freedom in the creation of objects.

Java is very rigid and requires all items to be denoted and spelled out. JavaScript allows you to call on an item that already exists, like the status bar or the browser itself, and play with just that part. JavaScript is geared to Web pages. Java is geared toward where it is needed most at the time.
Java is object-oriented programming (OOP) language created by James Gosling of Sun Microsystems. JavaScript was created good people at Netscape. JavaScript is a distant cousin of Java. It's also a OOP language. Many of their programming structures are identical.
JavaScript is a scripting language compatible with most browsers. It allows web developers to write interactive web pages that can respond to user input eg validating information entered in a form, highlighting links when the mouse is over them etc.
JavaScript is an implementation of the ECMAScript language standard and is typically used to enable programmatic access to computational objects.
JSON (JavaScript Object Notation) is a lightweight data-interchange format.This is a good source of javascript effects can be widely used in designing pages.
Wow you all explain very nice about java script. and I as per me Java Script is client-based, which means it does not have to make any server requests to run. This makes it ideal for fast response and initial validation of form input.
JavaScript is a scripting language compatible with most browsers. It allows web developers to write interactive Web pages that can respond to user input, for example, validation of data entered on a form, emphasizing the links when the mouse passes over them, etc.
JavaScript is the implementation of the ECMAScript standard language and it is typically used to enable support at the level of computer code environment.Javascript protest host is built directly into web browsers.Provided that site visitors use the browser supports Javascript and have both JavaScript JavaScript is continuous.
Reference URL's