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
Arrays

UNDERSTANDING JAVASCRIPT EVENTS

In javascript terms, events occur when some action triggers a script. There are two main types of events that can trigger scripts. These are any action taken by a user or a window event.

A user action occurs when a user takes some form of action by interacting with the elements of a page either by a mouse or keyboard.

A window event occurs when the browser loads or unloads a page or certain actions are taken are a predefined time ie. timer, automatic refresh, etc.

The following are the most common events. Click on each to see a full description and examples:

onload
onunload
onclick
ondblclick
onmousedown
onmouseup
onmouseover
onmousemove
onmouseout
onkeypress
onkeydown
onkeyup
onfocus
onblur
onsubmit
onreset
onselect
onchange


Home | Privacy Policy | Terms Of Use | Contact Us