这是一个Javascript对象的层次结构图
关于上图中javascript对象的属性,方法和事件对照表如下:
对象 |
属性 |
方法 |
事件 |
Window |
defaultStatus
frames
opener
parent
scroll
self
status
top
window |
alert
blur
close
confirm
focus
open
prompt
clearTimeout
setTimeout |
onLoad
onUnload
onBlur
onFocus |
Frame |
defaultStatus
frames
opener
parent
scroll
self
status
top
window |
alert
blur
close
confirm
focus
open
prompt
clearTimeout
setTimeout |
无 |
Location |
hash
host
hostname
href
pathname
por
protocol
search
|
reload()
replace()
|
无 |
History |
length
forward
go |
back |
无 |
Navigator |
appCodeName
appName
appVersion
mimeTypes
plugins
userAgent |
javaEnabled |
无 |
document |
alinkColor
anchors
applets
area
bgColor
cookie
fgColor
forms
images
lastModified
linkColor
links
location
referrer
title
vlinkColor |
clear
close
open
write
writeln |
无 |
image |
border
complete
height
hspace
lowsrc
name
src
vspace
width |
无 |
无 |
form |
action
elements
encoding
FileUpload
method
name
target |
submit
reset |
onSubmit
onReset |
text |
defaultValue
name
type
value |
focus
blur
select |
onBlur
onCharge
onFocus
onSelect |
在实际使用中,本文可以作为参考。