JAVASCRIPT

 Home  Computers & Internet  Web Programming JAVASCRIPT
What is Javascript?
Javascript Placement
Syntax
Reserved Words
Variables
Data Types
Escaping Characters
Concatenation
Arithmetic Operators
Assignment Operators
Comparison Operators
Boolean Operators
Conditional Operator
If Statements
Else If Statements
If Else Statements
Switch Statements
While Loops
For Loops
Do While Loops
Break Statement
Continue Statement
prompt()
alert()
Date()
Event Handlers
String Object Methods
Math Object Methods
Window Object Methods

WHAT IS JAVASCRIPT?

Javascript is a client-side programming language whose processing engine is embedded in a user's browser such as Internet Explorer, Netscape, Firefox, etc.

When a user browses to a webpage that contains javascript code, the javascript engine in his browser reads and interprets the javascript code. In this way javascript enables the webpage to enhance a user's experience by reacting with the user, doing calculations and producing a host of dynamic special effects.

The main draw-back of Javascript is that it relies on the user having Javascript enabled in their browser. Whilst most people have Javascript enabled by default on their browsers, it can also be turned off. If this happens, then the browser will not be able to interpret any of the Javascript on that webpage.

It is therefore recommended to use Javascript for secondary features of your website and to cater an alternative in the event that a user has Javascript turned off.

Javascript must not be confused with Java which is a completely different programming language.



Home | Privacy Policy | Terms Of Use | Contact Us