Danny Goodman'S "Javascript Bible" Object Road Map (Navigator 3.0 Edition)
Danny Goodman'S "Javascript Bible" Object Road Map (Navigator 3.0 Edition)
0 Edition)
HTML-Generated JavaScript Objects window
frames[i] parent self top status defaultStatus name window opener* onerror* blur()* onLoad= focus()* onUnload= scroll(x,y)* onBlur=* alert("msg") onFocus=* confirm("msg") prompt("msg","reply") open(URL,"name","specs") close() setTimeOut("exp",ms) clearTimeOut(ID) alinkColor anchors[i] applets[i]* bgColor cookie domain* embeds[i]* fgColor forms[i] images[i]* lastModified linkColor links[i] location** referrer title URL* vlinkColor
document
clear() (None) close() open("mimetype") write("string") writeln("string") action elements[i] encoding method name target
form
reset()* submit() onReset=* onSubmit=
history
length current*** next*** previous*** back() forward() go(int | "URL") (None)
radio link
target (None) checked defaultChecked length name type* value click() onClick=
location
hash host hostname href pathname port protocol search reload()* replace(URL)* (None)
anchor
(None) (None) (None)
applet*
(Java vars) (Java methods) (None)
checkbox
checked defaultChecked name type* value click() onClick=
area*
hash host hostname href pathname port protocol search target (None) onMouseOut= onMouseOver= border complete height hspace lowsrc name src vspace width
image*
(None) onAbort= onError= onLoad=
select
length blur()* name focus()* options[i] selectedIndex options[i].defaultSelected options[i].index options[i].selected options[i].text options[i].value type* onBlur= onChange= onFocus=
fileUpload*
*New in Navigator 3.0 **Do not use. To be deleted in a future release ***Only with data tainting enabled
name value blur() focus() select() onBlur= onFocus= onSelect=
string
anchor("anchor") big() blink() bold() charAt(index) fixed() fontcolor(#rrggbb) fontsize(1to7) indexOf("str" [,i]) italics() lastIndexOf("str" [,i]) link(URL) small() split(char)* strike() sub() substring(intA, intB) sup() toLowerCase() toUpperCase()
fold here
Date
prototype* get/setDate() get/setDay() get/setHours() get/setMinutes() get/setMonth() get/setSeconds() get/setTime() get/setYear() getTimezoneOffset() parse("dateString") toGMTString() toLocaleString() toString() UTC(date vals) length prototype*
Array*
join("char") reverse() sort(compareFunc)
Excerpted from:
Function*
caller (None) arguments[] prototype
JavaScript Bible
by Danny Goodman ISBN 0-7645-3022-4
navigator
appName javaEnabled()* appVersion taintEnabled()* appCodeName mimeTypes[i]* plugins[i]* userAgent (None)
mimeType*
description (None) enabledPlugin type suffixes (None) description filename length name
plugin*
refresh() (None)
fold here
For continued updates about JavaScript in Netscape Navigator 3.0, visit the JavaScript Bible Support Center at http://www.dannyg.com