JavaScript Is Browser Dependent

By: aathishankaran Emailed: 1765 times Printed: 2516 times    

Latest comments
By: rohit kumar - how this program is work
By: Kirti - Hi..thx for the hadoop in
By: Spijker - I have altered the code a
By: ali mohammed - why we use the java in ne
By: ali mohammed - why we use the java in ne
By: mizhelle - when I exported the data
By: raul - no output as well, i'm ge
By: Rajesh - thanx very much...
By: Suindu De - Suppose we are executing

JavaScript is but a scripting language, not a tool in and of itself. The software that actually runs the JavaScript code you write is the Web browser. JavaScript depends on the Web browser to support it. If the browser does not support it, your code will be ignored. Even worse, if you do not account for unsporting browsers, the JavaScript code itself is displayed as text on your page. 

Commonly available Browser are: 

Netscape Navigator

Microsoft Internet Explorer

Sun's Hot Java 

JavaScript Is an Interpreted Language 

As with most scripting languages,. JavaScript is interpreted at runtime by the browser before it is executed. JavaScript is not compiled into an actual program like an .EXE file but remains part of the HTML document to which it is attached. 

The disadvantage of an interpreted language is that it takes longer for the code to execute because the browser compiles the instructions at runtime just before executing them. However, the advantage is that it is much easier to update your source code. You do not have to worry about old versions of a JavaScript script hanging around because if you change it in your source HTML file, the new code is executed the next time the user accesses the document. 

JavaScript Is a Loosely Typed Language 

JavaScript is far different from strong-typed languages such as Java or Delphi, in which you must declare all variables of a certain type before using them. In contrast, JavaScript is much more flexible. You can declare variables of a specific type, but you do not need to. You can also work with a variable when you might not know the specific type before run time. 

JavaScript Is an Object-Based Language 

You might see JavaScript referred to as an object-oriented programming (OOP) language by Netscape and others, but this is actually a stretch of the true meaning of OOP. JavaScript is really an object-based language.

JavaScript Is Event-Driven 

Much of the JavaScript code you write will be in response to events generated by the user or the system. The JavaScript language itself is equipped to handle events. HTML objects, such as buttons or text fields, are enhanced to support event handlers. 

JavaScript Is Multifunctional 

JavaScript is multifaceted and can be used in a variety of contexts to provide a solution to a Web-based problem. Uses of JavaScript are: 

v     Enhance and liven static HTML pages.

v     Develop client-side apj3lications.

v     Serve as a building block for client/server Web applications.

v     Serve as client-side glue between HTML objects, Java applets, ActiveX controls, and Netscape plug-ins.

v     Serve as an extension to a Web server. .

v     Provide database connectivity without using CGI.

Java Home | All Java Tutorials | Latest Java Tutorials

Sponsored Links

If this tutorial doesn't answer your question, or you have a specific question, just ask an expert here. Post your question to get a direct answer.

Bookmark and Share


Be the first one to add a comment

Your name (required):

Your email(required, will not be shown to the public):

Your sites URL (optional):

Your comments:

More Tutorials by aathishankaran
Web Security Issues
The Web User's Perspective
Server-side plug-Ins
The best way to avoid security vulnerabilities with new server
JavaScript Security
Window Object
Working with Status Bar Messages
Retrieving a Portion of a String
Referencing Windows
Math Object
Frame Object
Document Object
Closing Windows
Built-in Object in Javascript
Textarea Object

More Tutorials in Java
Update contents of a file within a jar file
Tomcat and httpd configured in port 8080 and 80
Java File
Java String
Count number of vowels, consonants and digits in a String in Java
Reverse a number in Java
Student marks calculation program in Java
Handling Fractions in Java
Calculate gross salary in Java
Calculate average sale of the week in Java
Vector in Java - Sample Program
MultiLevel Inheritance sample in Java
Multiple Inheritance sample in Java
Java program using Method Overriding
Java program to check if user input is an even number

More Latest News
Most Viewed Articles (in Java )
A Serialization Example in Java
Type Casting in Java
instanceof sample program in Java
Using One-Dimensional Arrays in Java
FilenameFilter - sample program in Java
Method Overriding in Java
indexOf( ) and lastIndexOf( ) in Java
The java Buzzwords
Write to a file in Java - Sample Program
What is Java?
FileReader and FileWriter example program in Java
How to use ArrayList in Java
Extract characters in Java
XML and Java - Parsing XML using Java Tutorial
Character Arrays
Most Emailed Articles (in Java)
Converting a number into its equalant value in words in Java
java.lang.reflect package
Disadvantages of using Native methods in Java
What is UCS? What is ISO 10646?
Generating Your Key Pair example using keytool in Java
Operator Precedence in Java
PushbackReader sample program in Java
concat(), replace(), and trim() Strings in Java
instanceof sample program in Java
Use of - new - in Java
The Benefits of OOP
Increment and Decrement Operator
Characters in java
The continuing Revolution of java
Why java is important to the Internet