Javascript Tutorial


The Document Object Model

Getting Elements

getElementbyId
getElementsByName
getElementsByTagName
getElementsByClassName

Creating Elements

createElement
createTextNode

Attributes Manipulation

getAttribute
setAttribute
removeAttribute

Nodes Manipulation

childNodes
insertBefore
removeChild
previousSibling
nextSibling
parentNode

Tables Manipulation

createCaption
createTHead
createTFoot
insertRow
insertCell
tHead
tFoot
rows
cells

Data Types

Number

Variables
Number DataType
typeof Operator
NaN Type
Number Function
parseInt Function
parseFloat Function

String

String
toString()
String Function

Boolean

Boolean DataType
Boolean Function

Null

Null DataType

Undefined

Undefined DataType

Browser Object Model

Window Object Methods

BOM
setTimeout
setInterval
confirm
alert
open
resizeTo
resizeBy
moveTo

Window Object Events

onfocus
onblur
onerror

Window Object Properties

innerWidth/innerHeight
outerWidth/outerHeight
screenX/screenY
scrollX/scrollY
scrollMaxX/scrollMaxY

Location Object

href
reload
replace
assign

History Object

forward
back
go

Navigator Object

appCodeName
appName
appVersion
cookieEnabled
language
platform
userAgent

Operators

Bitwise

AND
OR
XOR
One's Complement
Left Shift
Right Shift

Logical

AND
OR
NOT

Relational

Less Than
Greater Than
Less Than or Equal To
Greater Than or Equal To
Equal To
Not Equal To

Unary

Pluse
Minus
Increment
Decrement

Assignment

Assignment
Addition
Subraction
Multiplication
Division
Modulus
BitwiseAnd

Arithmetic

Addition
Subraction
Multiplication
Division
Modulus

Special Operators

Conditional Operator
Comma Operator
Delete Operator
In Operator
Instanceof Operator
New Operator
This Operator
Typeof Operator
Void Operator

Special Operators Example

Conditional Operator
Delete Operator
In Operator
Instanceof Operator
New Operator
Typeof Operator
Void Operator