1 Phụ lục A Sơ đồ các đối tượng trong trình duyệt
2 Phụ lục A window 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() 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,, 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 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 hash assign( URL ) (None) host reload([unconditional]) host replace( URL ) href path port protocol search history length back( ) (None) current forward( ) next go(int URL ) previous locationbar, menubar, personalbar, scrollbars, statusbar, toolbar visible (none) (none) 3
layer above load( file,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 pagex pagey parentlayer siblingabove siblingbelow src top visibility zindex image border (None) onabort= complete onerror= height onload= hspace lowsrc src vspace width x y 4
link (<a href=.> </a>) hash host (None) onclick= host onmousedown= href onmouseout= path port onmouseover= text onmouseup= protocol ondblclick= search target x y anchor (<a = ></a>) (None) (None) text x y form action handleevent(evt) onreset= elements[i] reset() onsubmit= encoding submit() length method target area hash host (None) onclick= host onmouseover= href onmouseout= path port protocol search target 5
select length blur( ) onblur= 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 defaultvalue blur( ) onblur= form focus( ) onchange= handleevent(event) onfocus= type select( ) onkeydown= value onkeypress= onkeyup= onselect= button, reset, submit click( ) onclick= type handleevent(evt) onmousedown= value onmouseup= checkbox checked click() onclick= defaultchecked handleevent(evt) onmousedown= onmouseup= type value radio checked click( ) onclick= defaultchecked handleevent(evt) onmousedown= length onmouseup= type 6
value fileupload blur( ) onblur= value focus( ) onfocus= handleevent(evt) onselect= select( ) 7
Các đối tượng trong Javascript E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2 availheight availleft availtop availwidth colordepth height width pixeldepth prototype Math abs(val) acos(val) asin(val) atan(val) atan2(val1, val2) ceil(val) cos(val) exp(val) floor(val) log(val) max(val1, val2) min(val1, val2) pow(val1, power) random() round(val) sin(val) sqrt(val) tan(val) screen Date (None) 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() UTC(date vals) String 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( ) length prototype Array concat(array2) join( char ) push( ) pop( ) reverse( ) shift( ) slice(i,[j]) sort(comparefunc) unshift( ) 8
Number MAX_VALUE tostring( ) MIN_VALUE NaN NEGATIVE_INFINITY POSITIVE_INFINITY prototype navigator appcodename javaenabled( ) appname preference([,val]) appversion taintenabled( ) languagen4 mimetypes[i]n3 platformn4 plugins[i]n3 useragent data layerx layery pagex pagey screenx screeny target type which modifiers arguments[ ] arityn4 caller prototype event function (None) (None) plugin Phương thức description refresh( ) file length mimetype Phương thức description (None) enabledplugin type suffixes escape( str [,1]) unescape( str ) Boolean(value) Number( str ) String(value) global functions eval(expression) isnan(expression) parsefloat( string ) parseint( string ) 9