Sơ đồ các đối tượng trong trình duyệt
window
Thuộc tính Phương thức Sự kiện
closed alert(“msg”) onBlur=
defaultStatus back( ) onDragDrop=
document blur( ) onFocus=
frames[i] captureEvents(type) onLoad=
history clearInterval(ID) onMove=
innerHeight clearTimeout(ID) onResize=
innerWidth close( ) onUnload=
location confirm(“msg”)
locationbar disableExternalCapture()
menubar enableExternalCapture()
name find([“str”][,case, bkwd])
onerror focus( )
opener forward( )
outerHeight handleEvent(event)
outerWidth home( )
pageXOffset moveBy(D x,D y)
pageYOffset moveTo(x,y)
parent open(URL,”name”,”specs”)
personalbar print( )
scrollbars prompt(“msg”,”reply”)
self releaseEvents(type)
status resizeBy(D x,D y)
statusbar resizeTo(width,height)
toolbar routeEvent(event)
top scroll(x,y)
window scrollBy(D x,D y)
scrollTo(x,y)
setInterval(func, msec [,args]) setTimeout(func, msec [,args]) stop( )
document
Thuộc tính Phương thức Sự kiện
alinkColor captureEvents(type) (none)
anchors[i] clear( )
applets[i] close( )
bgColor getSelection( )
cookie handleEvent(event)
domain open(“mimetype” [,replace]) embeds[i] releaseEvents(type)
fgColor routeEvent(event)
forms[i] write(“string”) images[i] writeln(“string”) lastModified
layers[i]
linkColor links[i]
location referrer title URL vlinkColor
location
Thuộc tính Phương thức Sự kiện
hash assign(“URL”) (None)
host reload([unconditional])
hostname replace(“URL”)
href pathname port protocol search
history
Thuộc tính Phương thức Sự kiện
length back( ) (None)
current forward( )
layer
Thuộc tính Phương thức Sự kiện
above load(“filename”,y) onBlur=
background moveAbove(layerObj) onFocus=
below moveBelow(layerObj) onLoad=
bgColor moveBy(D x, D y) onMouseOut=
clip.top moveTo(x, y) onMouseOver=
clip.left moveToAbsolute(x, y) onMouseUp=
clip.right resizeBy(D x, D y) clip.bottom resizeTo(width, height) clip.width
clip.height document left name pageX pageY parentLayer siblingAbove siblingBelow src
top visibility zIndex
image
Thuộc tính Phương thức Sự kiện
border (None) onAbort=
complete onError=
height onLoad=
hspace lowsrc name src vspace width x y
link (<a href=….> </a>)
Thuộc tính Phương thức Sự kiện
hash host (None) onClick=
hostname onMouseDown=
href onMouseOut=
pathname port onMouseOver=
text onMouseUp=
protocol onDblClick=
search target x y
anchor (<a name=…></a>)
Thuộc tính Phương thức Sự kiện
name (None) (None)
text x y
form
Thuộc tính Phương thức Sự kiện
action handleEvent(evt) onReset=
elements[i] reset() onSubmit=
encoding submit()
length method name target
area
Thuộc tính Phương thức Sự kiện
hash host (None) onClick=
hostname onMouseOver=
href onMouseOut=
select
Thuộc tính Phương thức Sự kiện
length blur( ) onBlur=
name focus( ) onChange=
options[i] handleEvent(evt) onFocus=
options[i].defaultSelected options[i].index
options[i].selected options[i].text options[i].value selectedIndex type
text, textarea, password, hidden
Thuộc tính Phương thức Sự kiện
defaultValue blur( ) onBlur=
form focus( ) onChange=
name handleEvent(event) onFocus=
type select( ) onKeyDown=
value onKeyPress=
onKeyUp=
onSelect=
button, reset, submit
Thuộc tính Phương thức Sự kiện
name click( ) onClick=
type handleEvent(evt) onMouseDown=
value onMouseUp=
checkbox
Thuộc tính Phương thức Sự kiện
checked click() onClick=
defaultChecked handleEvent(evt) onMouseDown=
name onMouseUp=
type value
radio
Thuộc tính Phương thức Sự kiện
checked click( ) onClick=
defaultChecked handleEvent(evt) onMouseDown=
length onMouseUp=
fileUpload
Thuộc tính Phương thức Sự kiện
name blur( ) onBlur=
value focus( ) onFocus=
handleEvent(evt) onSelect=
select( )
Math
Thuộc tính Phương thức
E abs(val)
LN2 acos(val)
LN10 asin(val)
LOG2E atan(val)
LOG10E atan2(val1, val2)
PI ceil(val)
SQRT1_2 cos(val) SQRT2 exp(val) floor(val) log(val)
max(val1, val2) min(val1, val2) pow(val1, power) random()
round(val) sin(val) sqrt(val) tan(val)
String
Thuộc tính Phương thức length anchor(“anchorName”) prototype big( )
blink( ) bold( ) charAt(index) charCodeAt([i]) concat(string2) fixed( )
fontcolor(#rrggbb) fontsize(1to7) fromCharCode(n1...) indexOf(“str” [,i]) italics( )
lastIndexOf(“str” [,i]) link(URL)
match(regexp) replace(regexp,str) search(regexp) slice(i,j) small( ) split(char) strike( ) sub( )
substr(start,length) substring(intA, intB) sup( )
toLowerCase( ) toUpperCase( )
screen
Thuộc tính Phương thức
availHeight (None)
availLeft availTop availWidth colorDepth height width pixelDepth
Array
Thuộc tính Phương thức length concat(array2) prototype join(“char”)
push( ) pop( ) reverse( ) shift( ) slice(i,[j])
sort(compareFunc) unshift( )
Date
Thuộc tính Phương thức prototype get/set[UTC]Date()
get/set[UTC]Day() get/set[UTC]Hours() get/set[UTC]Minutes() get/set[UTC]Month() get/set[UTC]Seconds() get/set[UTC]Time() get/set[Full]Year() getTimezoneOffset() parse(“dateString”) toGMTString() toLocaleString() toString()
Number
Thuộc tính Phương thức MAX_VALUE toString( ) MIN_VALUE
NaN
NEGATIVE_INFINITY POSITIVE_INFINITY prototype
navigator
Thuộc tính Phương thức appCodeName javaEnabled( )
appName preference(name[,val]) appVersion taintEnabled( )
languageN4 mimeTypes[i]N3 platformN4 plugins[i]N3 userAgent
plugin
Thuộc tính Phương thức description refresh( ) filename
length name
global functions
escape(“str” [,1]) eval(expression) unescape(“str”) isNaN(expression)
event
Thuộc tính Phương thức
data (None)
layerX layerY pageX pageY screenX screenY target type which modifiers
function
Thuộc tính Phương thức
arguments[ ] (None)
arityN4 caller prototype
mimeType
Thuộc tính Phương thức description (None) enabledPlugin
type suffixes