Menu
Java Script Quick Reference

Data Types
Integer Floating-point
String Boolean
Hexidecimal Octal
Variable Undefined
Null Literals
Constants Reserved Words
ParseInt() ParseFloat()
toString() typeof()

Assignment Operators Comparison Operators
+= (A = A + B) > (Greater Than)
-= (A = A - B) < (Less Than)
*= (A = A * B) == (Equal to)
⁄= (A = A ⁄ B) != (NOT Equal to)
%= (A = A % B) <= (Less Than or Equal to)
  >= (Greater Than or Equal to)

Logical Operators Bitwise Operators
&& (AND)& (And)
|| (OR) | (Or)
! (NOT) ^ (XOr)
  << (Shift left)
  >> (Shift right)

Arithmetic Operators
+ (Addition) / (Division)
- (Subtraction) ++ (Incrementation)
- (Negation) -- (Decrementation)
  % (Modulus)

Control Structures
if/else for Loop
switch/case for/in Loop
try/catch while Loop
continue do/while Loop
break  

Global Functions
alert() escape()
confirm() unescape()
prompt() encodeURI()
eval() decodeURI()
Number() encodeComponentURI()
parseFloat() decodeURIComponent()
parseInt() isNaN()
.toString()  

Screen Object Properties
.width .colorDepth
.height .fontSmoothingEnabled
.availWidth .availHeight

Window Object Events
onBlur onresize
onClick onmouseup
ondblclick onmousedown
onError onmousemove
onFocus onmousemove
onhelp onmouseout
onkeyup onmouseover
onkeydown onmouseup
onkeypress onmouseenter
onLoad onmouseleave
onUnload  

Window Object Properties
history (object) innerHeight
location (object) innerWidth
document (object) outerHeight
navigator (object) outerWidth
self pageXOffset
parent pageYOffset
opener screen (object)
status screenLeft
name screenTop
closed screenX
frames screenY
top  

Window Object Methods
blur() print()
close() resizeBy()
focus() resizeTo()
moveBy() scroll()
moveTo() scrollBy()
open() scrollTo()
Document Object
getElementById .referrer
getElementsByTagName .fileCreatedDate
write .fileModifiedDate
writeln .fileSize
.alinkColor .domain
.bgColor .applets[]
.fgColor .embeds[]
.linkColor .images[]
.vlinkColor .links[]
.cookie .title
forms[i].elements[j] .URL
.anchors[]  

String Object
Methods Properties
.concat(secondString) .strike()
.charAt() .sub()
.substring() .sup()
.indexOf() .fontcolor()
.lastIndexOf() .fontsize()
.anchor(name) .match()
.big() .replace()
.blink() .search()
.bold() .slice()
.fixed() .split()
.italics() .trim()
.link(href) .toUpperCase()
.small() .toLowerCase()
.length .toString()

Math Object Methods
.abs() .max()
.ceil() .min()
.round() .pow()
.floor() .tan()
Math.PI .sin()
.random() .cos()
.sqrt()  

Array Methods
Create an Array .concat
Initialize an array .join
Access an Array .slice
Mutidimensional .splice
Array as a Stack .sort
.reverse .toString

Date Object
Date() .getFullYear()
Date(milliseconds) .getMonth()
Date(yyyy,mm,dd) .getDate()
.getTime()  

Timers
setTimeout(function, ms) setInterval(function,ms)
clearTimeout(timerID) clearInterval(timerID)


Learn more at amazon.com

Custom Search