English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Tell me about javascript

2007-02-26 18:14:04 · 9 answers · asked by jyoti 1 in Computers & Internet Programming & Design

9 answers

It is used for validation which can be performed at client side rather then passing it to server

2007-02-26 18:17:09 · answer #1 · answered by computer_crazy 2 · 3 0

Code with c or c++ like syntax that is embedded in your html file. Suppose if you have a Submit button on the form that does some string validation you can link the onclick event of the button to validate the string with javascript. Javascript is also used for server-side scripting. That means even before you receive the html from the server, it is processed to give you some dynamic content.

Note: Javascript is not the same as Java. Javascript is a product of Netscape where as Java is a product of Sun Microsystems. Both have different purposes.

2007-02-26 18:32:23 · answer #2 · answered by deostroll 3 · 1 0

"JavaScript is the name of Netscape Communications Corporation's and now the Mozilla Foundation's implementation of the ECMAScript standard, a scripting language based on the concept of prototype-based programming. The language is best known for its use in websites (as client-side JavaScript), but is also used to enable scripting access to objects embedded in other applications.

Despite the name, JavaScript is only distantly related to the Java programming language, the main similarity being their common debt to the C syntax. Semantically, JavaScript syntax has far more in common with the Self programming language.

JavaScript is a registered trademark of Sun Microsystems, Inc. It was used under license for technology invented and implemented by Netscape Communications and current entities such as the Mozilla Foundation."

2007-02-26 18:17:46 · answer #3 · answered by love2travel 7 · 1 0

JavaScript is the name of Netscape Communications Corporation's and now the Mozilla Foundation's implementation of the ECMAScript standard, a scripting language based on the concept of prototype-based programming. The language is best known for its use in websites (as client-side JavaScript), but is also used to enable scripting access to objects embedded in other applications.

JavaScript was originally developed by Brendan Eich of Netscape under the name Mocha, later LiveScript, and finally renamed to JavaScript. The change of name from LiveScript to JavaScript roughly coincided with Netscape adding support for Java technology in its Netscape Navigator web browser. JavaScript was first introduced and deployed in the Netscape browser version 2.0B3 in December of 1995. When web developers talk about using JavaScript in Internet Explorer, they are actually using JScript. The choice of name proved to be a source of much confusion.

2007-02-26 18:16:30 · answer #4 · answered by Anonymous · 1 0

(m)

JavaScript is a scripting language used in many websites. A scripting language is a language, which is easy and fast to learn. So is this reference. A scripting language is interpreted in run-time. It is not compiled like other languages as C++, C#, VB.NET etc. JavaScript is a client side language and it runs on the client browser. Netscape developed it and because of its simplicity it is one of the most known scripting languages. However JavaScript can be also used on the server-side. JavaScript can be used on all most known browsers. It can be easily used to interact with HTML elements. You can validate text fields, disable buttons, validate forms, or change the background color of your page. All this is possible with JavaScript. Like each programming language, it contains variables, arrays, functions, operators, objects and much more which can be help you to create better scripts for your pages. On the server side you can use JavaScript for example to manage your database entry. JavaScript code can be inserted directly in the HTML or you can place it in a separate file with the .js extension and link the web page with the .js file.

Is JavaScript a lighter version of Java?
Many who haven’t worked before with java or scripting languages think that JavaScript is the same as Java or a lighter version of it. This is not true. Java is a different language developed by Sun Micro Systems. Java is much more complex then JavaScript. In Java you have to declare each variable with the type, in JavaScript you don’t need to do that. All variables are declared when you first time use them. Furthermore in Java you have to declare all variables, functions and classes. In JavaScript you don’t even need to think about these things. Java is compiled to byte codes on the server and the result is send to the client. JavaScript is interpreted on the client side it doesn’t require any compilation.

Usage of JavaScript
Usually web-designers design pages and coders code applications. However with JavaScript a designer has the possibility to create a client side application with very less efforts. He can easily create some kind of dynamic pages – i.e.: you can easily show a prompt box and asks the user to enter his name whenever the page loads for the first time. He can then use the entered value to create a welcome string. These procedures are called events. Events can be used and called when something occurs – like loading the page for the first time. You could also write another event which is called whenever the page is closed. JavaScript is also mostly used to validate text fields. For example in asp.net you have the possibility to validate your controls with some validator controls. These validator controls are basically nothing more then a JavaScript file. This validation can be easily written with JavaScript to verify if a text field is empty or not.

2007-02-26 18:22:44 · answer #5 · answered by mallimalar_2000 7 · 3 0

Java script is a language which is used to develop web design's

2007-02-26 18:19:22 · answer #6 · answered by vijay 2 · 0 0

It is for dynamic web contents and we can develop the server side scripting also. we can handle the ActiveX controls.

2007-02-26 19:02:33 · answer #7 · answered by Anonymous · 0 0

google

2007-02-26 18:16:18 · answer #8 · answered by Anonymous · 0 0

search google, will you?

2007-02-26 18:15:42 · answer #9 · answered by Anonymous · 0 0

fedest.com, questions and answers