You are on page 1of 13

ajax

Propiedades
readyState
responseText
responseXML
staus
statusText
timeOut
Mtodos
abort
open
send
getResponseHeader
getAllResponseHeaders
setRequestHeader
Eventos
onreadystatechange
onprogress
ontimeout

number = myrequest.readyState
string = myrequest.responseText
xmldata = myrequest.responseXML
number = myrequest.status
string = myrequest.statusText
myrequest.timeOut = 4000;

myrequest.abort()
myrequest.open("GET", "result.php?id=george&age=30", true)
myrequest.send(parameters)
contentType = myrequest.getResponseHeader("Content-Type")
headers = myrequest.getAllResponseHeaders ();
myrequest.setRequestHeader("Content-type", "application/xwww-form-urlencoded")

mygetrequest.onreadystatechange=function(){...}
myrequest.onprogress=function(e){}
myrequest.ontimeout = function (){...}

array

Propiedades
length

number = unArray.length;

Mtodos
concat
indexOf
join
lastIndexOf
pop
push
reverse
shift

array = unArray.concat(otroArray);
number = unArray.indexOf(string);
string = unArray.join();
number = unArray.lastIndexOf(string);
unArray.pop();
unArray.push(string);
unArray.reverse();
unArray.shift();

slice
sort
splice
unshift

string = unArray.slice(n, n);


unArray.sort();
unArray.splice(n, n, string, string, )
unArray.unshift(string, string);

date

Mtodos
getDate
getDay
getFullYear
getHours
getMilliseconds
getMinutes
getMonth
getSeconds
getTime
setDate
setFullYear
setHours
setMilliseconds
setMinutes
setMonth
setSeconds
setTime
toDateString
toJSON
toLocaleDateString
toLocaleTimeString
toTimeString

number = d.getDate();
number = d.getDay();
number = d.getFullYear();
number = d.getHours();
number = d.getMilliseconds();
number = d.getMinutes();
number = d.getMonth();
number = d.getSeconds();
number = d.getTime();
date.setDate(numero)
date.setFullYear(numero)
date.setHours(numero)
date.setMilliseconds(numero)
date.setMinutes(numero)
date.setMonth(numero)
date.setSeconds(numero)
date.setTime(numero)
string = date.toDateString()
string = date.toJSON()
string = date.toLocaleDateString()
string = date.toLocaleTimeString()
string = date.toTimeString()

document

Propiedades
activeElement
aLinkColor
anchors []
applets []

nodo = document.activeElement
string = document.alinkColor
array = document.anchors[]
array = document.applets

document.anchors[1].innerHTML = ""
object = document.applets[1]

areas []
baseURI
bgColor
body
childNodes []
cookie
defaultView
dir
doctype
documentElement
documentMode
documentURI
domain
embeds []
fgColor
firstChild
forms []
getAttribute
hasChildNodes
hasFocus
head
height
images []
innerHTML
innerText
inputEncoding
lastChild
lastModified
linkColor
links []
location
origin
outerHTML
outerText
plugins []
readyState

array = document.areas
string = document.baseURI
string = document.bgColor
nodo = document.body
array = document.childNodes
string = document.cookie

object = document.areas[1]

string = document.body.id
number = document.childNodes[1]

window = document.defaultView

string = document.dir
nodo = document.doctype
nodo = document.documentElement
number = document.documentMode
string = document.documentURI
string =document.domain
srray = document.embeds
string = document.fgColor
nodo = document.firstChild
array = document.forms
string = document.getAttribute(String)
boolean = document.hasChildNodes
boolean = document.hasFocus
nodo = document.head
number = document.height
array = document.images
string = document.innerHTML
string = document.innerText
string = document.inputEncoding
nodo = document.lastChild
date = document.lastModified
string = document.linkColor
array = document.links
string = document.location
string = document.origin
string = document.outerHTML
string = document.outerText
array = document.plugins
string = document.readyState

object = document.embeds[1]

object = document.forms[1]

string = document.head.id
object = document.images[1]

string = document.links[1]

object = document.plugins[1]

referrer
scripts []
title
URL
vlinkColor
width
Mtodos
addEventListener()
appendChild()
clear()
close ()
createAttribute()
createComment()
createElement()
createTextNode()
getElementById()
getElementsByClassName []
getElementsByName []
getElementsByTagName []
normalize()
normalizeDocument()
open()
removeChild()
removeEventListener()
replaceChild()
reset()
document.submit()
write()
Eventos
onreadyStateChange
onKeyDown
onKeyUp
onKeyPress

string = document.referrer
array = document.scripts
string = document.title
string = document.URL
string = document.vlinkColor
number = document.width

document.addEventListener (evento, funcion)


document.appendChild(String)
document.clear()
document.close()
nodo = document.createAttribute(String)
nodo = document.createComment(String)
nodo = document.createElement(tag)
nodo = documento.createTextNode(String)
nodo = documento.getElementBy(String)
array = document.getElementsByClassName(String)
array = document.getElementsByName(String)
array = document.getElementsByTagName(String)
document.normalize()
document.normalizeDocument()
document.open()
document.removeChild(nodo)
document.removeEventListener (evento, funcion)
document.replaceChild(nodo, nodo)
document.reset()
document.submit()
document.write()

object = document.scripts[1]

Elements

Propiedades
activeElement
childNodes []
clientHeight
clientWidth
designMode
firstChild
getAttribute
hasAttributes
hasChildNodes
hasFocus
innerHTML
innerText
isEqualNode
isSameNode
lastChild
nextSibling
nodeName
noteType
nodeValue
offsetHeight
offsetLeft
offsetTop
offsetWidth
outerHTML
outerText
ownerDocument
ownerElement
parentNode
children []
firstElementChild
lastElementChild
childElementCount
previousSibling

nodo = nodo.activeElement
array = nodo.childNodes
number = nodo.clientHeigh
number = nodo.clientWidth
string = nodo.contentDocument.designMode = "on"

nodo = nodo.firstChild
string = nodo.getAttribute(String)
nodo.hasAttributes
nodo.hasChildNodes
nodo.hasFocus
string = nodo.innerHTML
string = nodo.innerText
nodo.isEqualNode(nodo)
nodo.isSameNode(nodo)
nodo = nodo.lastChild
nodo = nodo.nextSibling
string = nodo.nodeName
string = nodo.nodeType
string = nodo.nodeValue
number = nodo.offsetHeight
number = nodo.offsetLeft
number = nodo.offsetTop
number = nodo.offsetWidth
string = nodo.outerHTML
string = nodo.outerText
document = nodo.ownerDocument
nodo = atributo.ownerElement
nodo = nodo.parentNode
array = nodo.children
nodo = nodo.firstElementChild
nodo = nodo.lastElementChild
number = nodo.childElementCount
nodo = nodo.previousSibling

array = document.childNodes
number = body.clientHeigh
number = body.clientWidth
nodo.contentWindow.document.designMode =
"on"

nodo.innerHTML = String
nodo.innerText = String

nodo.outerHTML = String
nodo.outerText = String

nodo.parentNode.removeChild(nodo)
nodo.children.length
nodo.firstElementChild.innerHTML
nodo.lastElementChild.innerHTML

tagName
textContent
Mtodos
addEventListener()
appendChild()
cloneNode()
createElement()
createTextNode()
insertAfter()
insertAdjacentHTML()
insertAdjacentText()
insertBefore()
normalize()
removeChild()
removeEventListener()
replaceChild()
reset()
setAttribute()

tag = nodo.tagName
string = nodo.textContent

nodo.addEventListener (evento, funcion)


nodo.appendChild(String)
nodo = nodo.cloneNode(Boolean)
nodo = nodo.createElement(tag)
nodo = nodo.createTextNode(String)
nodo = nodo.insertAfter(nodo, nodo)
nodo.insertAdjacentHTML(posicion, String)
nodo.insertAdjacentText(posicion, String)
nodo =nodo.insertBefore(nodo, nodo)
nodo.normalize()
nodo.removeChild(nodo)
nodo.removeEventListener (evento, funcion)
nodo.replaceChild(nodo, nodo)
nodo.reset()
nodo.setAttribute(String, String)

global

Mtodos
escape
eval
isFinite
isNaN
Number
parseFloat
parseInt
String
unescape

string = escape(cadena)
eval(cadena)
boolean = isFinite(n)
boolean = isNaN(n)
number = Number(expresion)
number = parseFloat(expresion)
number = parseInt(expresion)
string = String (expresion)
string = unescape(cadena)

history

Propiedades
current
length

string = history.current;
number = history.length;

document.body.appendChild(String)

next
previous

string = history.next;
string = history.previous;

Mtodos
back()
forward()
go()

window.history.back();
window.history.forward();
window.history.go(-2)

location

Propiedades
hash
host
hostName
href
origin
pathName
port
protocol

string = location.hash;
string = location.host;
string = location.hostName;
string = location.href;
string = location.origin;
string = location.pathName;
string = location.port;
string = location.protocol;

Mtodos
assign
reload
replace

location.assign("URL");
location.reload();
location.replace("URL");

math

Propiedades
E
LN2
LN10
LOG2E
LOG10E
PI
SQRT1_2
SQRT2
Mtodos

numero = Math.E
numero = Math.LN2
numero = Math.LN10
numero = Math.LOG2E
numero = Math.LOG10E
numero = Math.PI
numero = Math.SQRT1_2
numero = Math.SQRT2

abs
acos
asin
atan
ceil
cos
exp
floor
log
max
min
pow
random
round
sin
sqrt
tan

numero = Math.abs(n);
numero = Math.acos(n);
numero = Math.asin(n);
numero = Math.atan(n);
numero = Math.ceil(n);
numero = Math.cos(n);
numero = Math.exp(n);
numero = Math.floor(n);
numero = Math.log(n);
numero = Math.max(n, n, n, ...);
numero = Math.min(n, n, n, ...);
numero = Math.random();
numero = Math.round(n);
numero = Math.sin(n);
numero = Math.sqrt(n);
numero = Math.tan(n);

navigator

Propiedades
appCodeName
appMinorVersion
appName
appVersion
browserLanguage
cpuClass
cookieEnabled
javaEnabled
language
mimeType []
onLine
oscpu
platform
plugins []
preference
product

string = navigator.appCodeName;
string = navigator.appMinorVersion;
string = navigator.appName;
string = navigator.appVersion;
string = navigator.browserLanguage;
string = navigator.cpuClass;
boolean = navigator.cookieEnabled;
boolean = navigator.javaEnabled();
string = navigator.language;
array = navigator.mimeType []
boolean = navigator.onLine;
string = navigator.oscpu;
string = navigator.platform;
array = navigator.plugins [];
string = navigator.preference;
string = navigator.product;

productSub
securityPolicy
systemLanguage
userAgent
userLanguage
userProfile
Mtodos
geoLocation.getCurrentPosition
geoLocation.watchPosition
geoLocation.clearPosition

string = navigator.productSub;
string = navigator.securityPolicy;
string = navigator.systemLanguage;
string = navigator.userAgent;
string = navigator.userLanguage;
string = navigator.userProfile;

navigator.geolocation.getCurrentPosition(function(position)) {...}
navigator.geolocation.watchPosition(function(position)) {...}
navigator.geolocation.getCurrentPosition(variable) {...}

number

Propiedades
MAX_VALUE
MIN_VALUE
NaN
undefined
infinity
NEGATIVE_INFINITY
POSITIVE_INFINITY

number = Number.MAX_VALUE;
number = Number.MIN_VALUE;
number = Number.NaN;
x === undefined
x === infinity
number = Number.NEGATIVE_INFINITY;
number = Number.POSITIVE_INFINITY;

Mtodos
toExponential
toFixed
toPrecision

number = num.toExponential();
number = num.toFixed(2);
number = num.toPrecision(2);

RegExp

Propiedades
ignoreCase
lastIndex
multiline
source

boolean = RegExp.ignoreCase;
number = RegExp.lastIndex;
boolean = RegExp.multiline;
string = patron.source;

Mtodos
exec

patron.exec(string);

test
match

patron.test(string);
String.match(RegExp);

screen

Propiedades
availHeight
availWidth
colorDepth
height
pixelDepth
width

number = screen.availHeight;
number = screen.availWidth;
number = screen.colorDepth;
number = screen.height;
number = screen.pixelDepth;
number = screen.width;

storage

Propiedades
length

number = localStorage.length

Mtodos
clear
getItem
removeItem
setItem

localStorage.clear();
string = localStorage.getItem("clave");
localStorage.removeItem("clave");
localStorage.setItem("clave", "valor");

string

Propiedades
length

number = txt.length

Mtodos
anchor
big
blink
bold
charAt
charCode
concat
fixed
fontColor

string = txt.anchor("chap10");
string = txt.big();
string = txt.blink();
string = txt.bold();
string = txt.charAt(n)
number = txt.charCodeAt(n)
string = txt.concat(string);
string = txt.fixed();
string = txt.fontColor("color");

fontSize
fromCharCode
indexOf
italics
lastIndexOf
link
localeCompare
match
replace
search
slice
small
split
strike
sub
substr
substring
sup
toLocaleLowerCase
toLocaleUpperCase
toUpperCase
toLoweCase

string = txt.fontSize(n);
string = String.fromCharCode(n);
number = txt.indexOf(string);
string = txt.italics();
number = txt.lastIndexOf(string);
string = txt.link("URL");
number = txt.localeCompare(string);
string = txt.match(pattern);
string = txt.replace("Microsoft", "W3Schools");
number = txt.search(string);
string = txt.slice(n, n);
string = txt.small();
string = txt.split(string);
string = txt.strike();
string = txt.sub();
string = txt.substr(n, n)
string = txt.substring(n, n);
string = txt.sup();
string = txt.toLocaleLowerCase();
string = txt.toLocaleUpperCase();
string = txt.toUpperCase();
string = txt.toLowerCase();

window

Propiedades
closed
defaultStatus
document
innerHeight
innerWidth
length
name
opener
outerHeight
outerWidth
pageXOffset

boolean = window.closed
string = window.defaultStatus
window.document..
number = window.innerHeight;
number = window.innerWidth;
number = window.length;
string = window.name;
window.opener.document..
number = window.outerHeight;
number = window.outerWidth;
number = window.pageXOffset

pageYOffset
parent
screenLeft
screenTop
screenX
screenY
self
status
top
Mtodos
alert
atob
blur
btoa
clearInterval
clearTimeout
close
confirm
focus
moveBy
moveTo
open
print
prompt
resizeBy
resizeTo
scrollBy
scrollTo
setInterval
setTimeout
stop
Eventos
onLoad
onUnload

number = window.pageYOffset
window.parent.document..
number = window.screenLeft;
number = window.screenTop;
number = window.screenX
number = window.screenY
window.self.document
string = window.status
window.top.document

alert(.);
string = window.atob(cadena);
window.blur();
string = window.btoa(cadena);
clearInterval(variable);
clearTimeout(variable);
window.close();
confirm(string);
window.focus();
window.moveBy(number, number);
window.moveTo(number, number);
window.open(URL, name, specs)
window.print();
prompt(string, string);
window.resizeBy(number, number);
window.resizeTo(number, number);
window.scrollBy(number, number);
window.scrollTo(number, number);
setInterval(funcion, number);
setTimeout(funcion, number);
window.stop();

onMouseDown
onMouseUp
onMouseMove
onMove
onResize
onError

You might also like