Vous êtes sur la page 1sur 7

JavaScript Resources

http://www.cheat-sheets.org/sites/javascript.su/

http://overapi.com/static/cs/JSB6RefBooklet.pdf

http://overapi.com/static/cs/jsquick.pdf

http://overapi.com/static/cs/javascript_cheat_sheet.pdf

Figure below from http://overapi.com/javascript/

Core DOM Basic Objects Browser


Nodelist Properties Array Properties Window Properties
length constructor closed
Nodelist Methods length defaultStatus
item() prototype document
NamedNodeMap Properties Array Methods frames
length concat() history
NamedNodeMap Methods indexOf() innerHeight
getNamedItem() join() innerWidth
getNamedItemNS() lastIndexOf() length
item() pop() location
removeNamedItem() push() name
removeNamedItemNS() reverse() navigator
setNamedItem() shift() opener
setNamedItemNS() slice() outerHeight
Document Properties sort() outerWidth
doctype splice() pageXOffset
documentElement toString() pageYOffset
documentURI unshift() parent
domConfig valueOf() screen
implementation Boolean Properties screenLeft
inputEncoding constructor screenTop
xmlEncoding prototype screenX
xmlVersion Boolean Methods screenY
Document Methods toString() self
adoptNode(node) valueOf() status
createAttribute() Math Properties top
createAttributeNS(URI,name) E Window Methods
createCDATASection() LN2 alert()
createComment() LN10 blur()
createDocumentFragment() LOG2E clearInterval()
createElement() LOG10E clearTimeout()
createElementNS() PI close()
createEntityReference() SQRT1_2 confirm()
createProcessingInstruction() SQRT2 focus()
Math Methods moveBy()
createTextNode() abs(x) moveTo()
getElementById() acos(x) open()
getElementsByTagName() asin(x) print()
getElementsByName() atan(x) prompt()
querySelectorAll() atan2(y,x) resizeBy()
querySelector() ceil(x) resizeTo()
getElementsByTagNameNS() cos(x) scrollBy()
importNode() exp(x) scrollTo()
normalizeDocument() floor(x) setInterval()
Element Properties log(x) setTimeout()
schemaTypeInfo max(x,y,z,...,n) Navigator Properties
tagName min(x,y,z,...,n) appCodeName
Element Methods pow(x,y) appName
getAttribute() random() appVersion
getAttributeNS() round(x) cookieEnabled
getAttributeNode() sin(x) platform
getAttributeNodeNS() sqrt(x) userAgent
getElementsByTagName() tan(x) Navigator Methods
getElementsByTagNameNS() Number Properties javaEnabled()
hasAttribute() constructor registerContentHandler()
hasAttributeNS() MAX_VALUE registerProtocolHandler()
removeAttribute() MIN_VALUE Screen Properties
removeAttributeNS() NEGATIVE_INFINITY availHeight
removeAttributeNode() POSITIVE_INFINITY availWidth
setAttribute() prototype colorDepth
setAttributeNS() Number Methods height
setAttributeNode() toExponential(x) pixelDepth
setAttributeNodeNS() toFixed(x) width
setIdAttribute() toPrecision(x) History Properties
setIdAttributeNS() toString() length
setIdAttributeNode() valueOf() History Methods
Attr Properties String Properties back()
isId constructor forward()
name length go()
ownerElement prototype Location Properties
schemaTypeInfo String Methods hash
specified charAt() host
value charCodeAt() hostname
concat() href
fromCharCode() pathname
indexOf() port
lastIndexOf() protocol
match() search
replace() Location Methods
search() assign()
slice() reload()
split() replace()
substr()
substring()
toLowerCase()
toUpperCase()
valueOf()
String HTML Wrapper Methods
anchor()
big()
blink()
bold()
fixed()
fontcolor()
fontsize()
italics()
link()
small()
strike()
sub()
sup()
Global Properties
Infinity
NaN
undefined
Global Methods
decodeURI()
decodeURIComponent()
encodeURI()
encodeURIComponent()
escape()
eval()
isFinite()
isNaN()
Number()
parseFloat()
parseInt()
String()
unescape()

Date Object Graphics DOM Events


Date Properties CanvasRenderingContext2D M Mouse Events
constructor ethods click
prototype arc() dblclick
Date Methods arcTo() mousedown
getDate() beginPath() mousemove
getDay() bezierCurveTo() mouseover
getFullYear() clearRect() mouseout
getHours() clip() mouseup
getMilliseconds() closePath() Keyboard Events
getMinutes() createImageData() keydown
getMonth() createLinearGradient() keypress
getSeconds() createPattern() keyup
getTime() createRadialGradient() Frame Events
getTimezoneOffset() drawCustomFocusRing() abort
getUTCDate() drawImage() error
getUTCDay() drawSystemFocusRing() load
getUTCFullYear() fill() resize
getUTCHours() fillRect() scroll
getUTCMilliseconds() fillText() unload
getUTCMinutes() getImageData() Form Events
getUTCMonth() getLineDash() blur
getUTCSeconds() isPointInPath() change
parse() lineTo() focus
setDate() measureText() reset
setFullYear() moveTo() select
setHours() putImageData() onsubmit
setMilliseconds() quadraticCurveTo() Event Object Constant
setMinutes() rect() AT_TARGET
setMonth() restore() BUBBLING_PHASE
setSeconds() rotate() CAPTURING_PHASE
setTime() save() Event Object Properties
setUTCDate() scale() bubbles
setUTCFullYear() scrollPathIntoView() cancelable
setUTCHours() setLineDash() currentTarget
setUTCMilliseconds() setTransform() eventPhase
setUTCMinutes() stroke() target
setUTCMonth() strokeRect() timeStamp
setUTCSeconds() strokeText() type
toDateString() transform() Event Object Methods
toISOString() translate() initEvent()
toJSON() preventDefault()
toLocaleDateString() stopPropagation()
toLocaleTimeString() EventTarget Object
toLocaleString() addEventListener()
toString() dispatchEvent()
toTimeString() removeEventListener()
toUTCString() EventListener Object
UTC() handleEvent()
valueOf() MouseEvent/KeyboardEvent O
bject
altKey
button
clientX
clientY
ctrlKey
keyIdentifier
keyLocation
metaKey
relatedTarget
screenX
screenY
shiftKey
MouseEvent/KeyboardEvent M
ethods
initMouseEvent()
initKeyboardEvent()

DOM Node RegExp


Node Properties Modifiers
attributes i
baseURI Perform case-insensitive matchin
childNodes g
firstChild g
lastChild Perform a global match (find all
localName matches rather than stopping aft
namespaceURI er the first match)
nextSibling m
nodeName Perform multiline matching
nodeType Brackets
nodeValue [abc]
ownerDocument Find any character between the b
parentNode rackets
prefix [^abc]
previousSibling Find any character not between t
textContent he brackets
Node Methods [0-9]
appendChild() Find any digit from 0 to 9
cloneNode() [A-Z]
compareDocumentPosition() Find any character from upperca
getFeature(feature,version) se A to uppercase Z
getUserData(key) [a-z]
hasAttributes() Find any character from lowercas
hasChildNodes() e a to lowercase z
insertBefore() [A-z]
isDefaultNamespace() Find any character from upperca
isEqualNode() se A to lowercase z
isSameNode() [adgk]
isSupported() Find any character in the given s
lookupNamespaceURI() et
lookupPrefix() [^adgk]
normalize() Find any character outside the gi
ven set
removeChild()
replaceChild() (red|blue|green)
Find any of the alternatives speci
setUserData(key,data,handler)
Node Types fied
Metacharacters
Element1
.
Attr2
Find a single character, except n
Text3
ewline or line terminator
CDATASection4
\w
EntityReference5
Find a word character
Entity6
\W
ProcessingInstruction7
Find a non-word character
Comment8
\d
Document9
Find a digit
DocumentType10
\D
DocumentFragment11
Find a non-digit character
Notation12
\s
nodeName Returns
Find a whitespace character
Element
\S
element name
Find a non-whitespace character
Attr
\b
attribute name
Find a match at the beginning/en
Text
d of a word
#text
\B
CDATASection
Find a match not at the beginning
#cdata-section
/end of a word
EntityReference
\0
entity reference name
Find a NUL character
Entity
entity name \n
ProcessingInstruction Find a new line character
target \f
Comment Find a form feed character
#comment \r
Document Find a carriage return character
#document \t
DocumentType Find a tab character
doctype name \v
DocumentFragment Find a vertical tab character
#document fragment \xxx
Notation Find the character specified by a
notation name n octal number xxx
nodeValue Returns \xdd
Element Find the character specified by a
null hexadecimal number dd
Attr \uxxxx
attribute value Find the Unicode character speci
Text fied by a hexadecimal number xx
content of node xx
CDATASection Quantifiers
content of node n+
EntityReference Matches any string that contains
null at least one n
Entity n*
null Matches any string that contains
ProcessingInstruction zero or more occurrences of n
content of node n?
Comment Matches any string that contains
comment text zero or one occurrences of n
Document n{X}
null Matches any string that contains
a sequence of X n's
DocumentType
null n{X,Y}
Matches any string that contains
DocumentFragment
a sequence of X to Y n's
null
n{X,}
Notation
Matches any string that contains
null
a sequence of at least X n's
n$
Matches any string with n at the
end of it
^n
Matches any string with n at the
beginning of it
?=n
Matches any string that is followe
d by a specific string n
?!n
Matches any string that is not foll
owed by a specific string n
RegExp Properties
global
ignoreCase
lastIndex
multiline
source
RegExp Methods
exec()
test()

Vous aimerez peut-être aussi