JavaScript, developed by Netscape, is a smaller language that does not create applets or standalone applications.
In its most common form today, JavaScript resides inside HTML documents, and can provide levels of interactivity far beyond typically flat HTML pages -- without the need for server-based CGI (Common Gateway Interface) programs.
Furthermore it is important to understand that a Java-enabled browser is not automatically a JavaScript-enabled browser: the two technologies require entirely separate interpreters (licensed from separate companies) to handle the languages. It is unlikely, however, that future browsers will incorporate one but not the other (plus or minus implementation timetables on various platforms).
Advantages of Java script are :
1) JavaScript effects are also much faster to download than some other front-end technologies like Flash and Java applets. In fact, unless you're writing a massive JavaScript application, it's quite likely that no significant extra download time will be added to a page by using JavaScript on it. Nor do users need to download a plug in before they can view your JavaScript, as they would with Flash for example, they simply need a browser that supports it – and, of course, most modern browsers do.
2) Other advantages include the fact that you don't need any extra tools to write JavaScript, any plain text or HTML editor will do, so there's no expensive development software to buy. It's also an easy language to learn, and there's a thriving and supportive online community of JavaScript developers and information resources.
For more detailed information, visit the source site :
http://www.dannyg.com/ref/java vsjavascript.html
Answered by
Alok Gupta
at
10:15 PM on April 24, 2008