JAVASCRIPT AND BROWSER OBJECTS QUICK REFERENCE JAVASCRIPT BIBLE, 6TH EDITION DANNY GOODMAN - APPENDIX A

Page created by Seth Stevens
 
CONTINUE READING
JAVASCRIPT AND BROWSER OBJECTS QUICK REFERENCE JAVASCRIPT BIBLE, 6TH EDITION DANNY GOODMAN - APPENDIX A
JavaScript and Browser Objects
       Quick Reference

 JavaScript Bible, 6th Edition
      Danny Goodman
                    Appendix A

       ©2007 Danny Goodman (dannyg.com). All Rights Reserved.
2                                                                                                                                    JavaScript Bible, 6th Edition. ©2007 Danny Goodman (dannyg.com). All Rights Reserved.

JavaScript and Browser Objects Quick Reference
                           String                             28                                Date                            30                                 Control Statements                              32
constructor                   anchor("anchorName")                 constructor                      getFullYear()                               if (condition) {
length                        big()                                prototype                        getYear()                                      statementsIfTrue
prototype                     blink()                                                               getMonth()                                  }
                              bold()                                                                getDate()
                              charAt(index)                                                         getDay()                                    if (condition) {
                              charCodeAt([i])                                                       getHours()                                     statementsIfTrue
                              concat(string2)                                                       getMinutes()                                } else {
                              fixed()                                                               getSeconds()                                   statementsIfFalse
                              fontcolor(#rrggbb)                                                    getTime()                                   }
                              fontsize(1to7)                                                        getMilliseconds()
                              fromCharCode(n1...)*                                                  getUTCFullYear()                            result = condition ? expr1 : expr2
                              indexOf("str" [,i])                                                   getUTCMonth()
                              italics()                                                             getUTCDate()                                for ([init expr]; [condition]; [update expr]) {
                              lastIndexOf("str" [,i])                                               getUTCDay()                                   statements
                              link(url)                                                             getUTCHours()                               }
                              localeCompare()                                                       getUTCMinutes()
                              match(regexp)                                                         getUTCSeconds()                             for (var in object) {
                              replace(regexp,str)                                                   getUTCMilliseconds()                          statements
                              search(regexp)                                                        parse("dateString")*                        }
                              slice(i,j)                                                            setYear(val)
                              small()                                                               setFullYear(val)                            for each ([var] varName in objectRef) {
                              split(char)                                                           setMonth(val)                                 statements
                              strike()                                                              setDate(val)                                }M1.8.1
                              sub()                                                                 setDay(val)
                              substr(start,length)                                                  setHours(val)                               with (objRef) {
                              substring(intA, intB)                                                 setMinutes(val)                               statements
                              sup()                                                                 setSeconds(val)                             }
                              toLocaleLowerCase()                                                   setMilliseconds(val)
                              toLocaleUpperCase()                                                   setTime(val)                                do {
                              toLowerCase()                                                         setUTCFullYear(val)                           statements
                              toString()                                                            setUTCMonth(val)                            } while (condition)
                              toUpperCase()                                                         setUTCDate(val)
                              valueOf()                                                             setUTCDay(val)                              yield valueM1.8.1
*Method of the static String object.                                                                setUTCHours(val)
                                                                                                    setUTCMinutes(val)                          while (condition) {
                                                                                                    setUTCSeconds(val)                            statements
              Regular Expressions                             42                                    setUTCMilliseconds(val)
                                                                                                    getTimezoneOffset()
                                                                                                                                                }

global                         compile(regexp)                                                      toDateString()                              return [value]
ignoreCase                     exec("string")*                                                      toGMTString()
input                          test("string")                                                       toLocaleDateString()                        switch (expression) {
lastIndex                      str.match(regexp)                                                    toLocaleString()                              case labelN :
multiline                      str.replace(regexp,"string")                                         toLocaleTimeString()                              statements
lastMatch                      str.search(regexp)                                                   toString()                                        [break]
lastParen                      str.split(regexp[,limit])                                            toTimeString()                                ...
leftContext                                                                                         toUTCString()                                 [default :
prototype                                                                                           UTC(dateValues)*                                  statements]
rightContext                                                       *Method of the static Date object.                                           }
source
$1...$9                                                                                                                                         label :
                                                                                                                                                continue [label]
*Returns array with properties: index, input, [0],...[n].                                       Math*                           29              break [label]
                                                                   E                                       abs(val)
                                                                   LN2                                     acos(val)                            try {
                              Array                           31   LN10                                    asin(val)                               statements to test
constructor                    concat(array2)                      LOG2E                                   atan(val)                            }
length                         every(func[, thisObj])M1.8          LOG10E                                  atan2(val1, val2)                    catch (errorInfo) {
prototype                      filter(func[, thisObj])M1.8         PI                                      ceil(val)                               statements if exception occurs in try block
                               forEach(func[, thisObj])M1.8        SQRT1_2                                 cos(val)                             }
                               indexOf(func[, thisObj])M1.8        SQRT2                                   exp(val)                             [finally {
                               join("char")                                                                floor(val)                              statements to run, exception or not
                               lastIndexOf(func[, thisObj])M1.8                                            log(val)                             }]
                               map(func[, thisObj])M1.8                                                    max(val1, val2)
                               pop()                                                                       min(val1, val2)                      throw value
                               push()                                                                      pow(val1, power)
                               reverse()                                                                   random()
                               shift()                                                                     round(val)
                               slice(i,[j])                                                                sin(val)
                               some(func[, thisObj])M1.8                                                   sqrt(val)
                                                                                                                                                                             Number                                29
                               sort(compareFunc)                                                           tan(val)                             constructor                             toExponential(n)
                               splice(i,j[,items])                 *All properties and methods are of the static Math object.                   MAX_VALUE                               toFixed(n)
                               toLocaleString()                                                                                                 MIN_VALUE                               toLocaleString()
                               toString()                                                                                                       NaN                                     toString([radix])
                               unshift()
                                                                                                Error                           32              NEGATIVE_INFINITY
                                                                                                                                                POSITIVE_INFINITY
                                                                                                                                                                                        toPrecision(n)
                                                                                                                                                                                        valueOf()
                                                                   prototype                               toString()                           prototype
                        Function                              34   constructor
                                                                   descriptionE
arguments                      apply(this, argsArray)              fileNameE
caller                         call(this[,arg1[,...argN]])
constructor                    toString()
                                                                   lineNumber                                                                                                Boolean                               29
                                                                   message
length                         valueOf()                           name                                                                         constructor                             toString()
prototype                                                          numberE                                                                      prototype                               valueOf()
3                                                                                                             JavaScript Bible, 6th Edition. ©2007 Danny Goodman (dannyg.com). All Rights Reserved.

JavaScript and Browser Objects Quick Reference
                   Globals               35
                                                                                                  Appendix A
Functions
atob()M                                                                                   JavaScript Bible, 6th Edition
btoa()M
decodeURI("encodedURI")                                                                       by Danny Goodman
decodeURIComponent("encComp")
encodeURI("URIString")
encodeURIComponent("compString")
escape("string" [,1])
                                                                                        How to Use This Quick Reference
eval("string")
isFinite(number)                                 This guide contains quick reference info for the                 Each term is supported by all baseline browsers unless
isNaN(expression)                                core JavaScript language and browser object                      noted with a superscript symbol indicating browser brand
isXMLName("string")M1.8.1                        models starting with IE 5.5, Mozilla, and Safari.                and version:
Number("string")
parseFloat("string")
                                                                                                                    E—Internet Explorer M—Mozilla S—Safari
                            Statements
parseInt("string" [,radix])                      Numbers in the upper right corners of object                     For example, M1.4 means the term is supported only
                            // /*...*/
toString([radix])           const                squares are chapter numbers in which the object                  by Mozilla 1.4 or later; E means the terms is supported
unescape("string")          var                  is covered in detail.                                            only by Internet Explorer.
unwatch(prop)
watch(prop, handler)

                 Operators               33                     frameset                            16                                       window                                           16
Comparison                                    border          (None)                  onload             appCoreM                    addEventListener(”evt”, func,capt)MS onabortM
==        Equals                              borderColorE
                                                                                                         clientInformationES1.2      alert(”msg”)                          onafterprintE
===       Strictly equals                     cols
                                                                                                         clipboardDataE              attachEvent(”evt”, func)E             onbeforeprintE
!=        Does not equal                      frameBorderE
                                                                                                         closed                      back()M                               onbeforeunloadE
!==       Strictly does not equal             frameSpacingE
                                                                                                         Components[]M               blur()                                onblur
>         Is greater than                     rows
                                                                                                         contentM                    clearInterval(ID)                     onclick
>=        Is greater than or equal to
                                                                                                         controllers[]M              clearTimeout(ID)                      onclose
<         Is less than
                                                                                                         cryptoM                     close()                               onerror
>>=      Zero fill by value
&=        Bitwise AND by value                                  popupE                     16            navigator                   removeEventListener(”evt”, func,capt)MS
                                                                                                         netscapeM                   resizeBy(Δx, Δy)
|=        Bitwise OR by value                      document                hide()                        offscreenBufferingES1.2     resizeTo(width, height)
^=        Bitwise XOR by value                     isOpen                  show()                        opener                      scroll()
                                                                                                         outerHeightMS               scrollBy(Δx, Δy)
Boolean
                                                                                                         outerWidthMS                scrollByLines(n)M
&&           AND
                                                                                                         pageXOffsetMS               scrollByPages(n)M
||           OR
                                                                                                         pageYOffsetMS               scrollTo(x, y)
!            NOT
                                                                                                         parent                      setInterval(func, msecs[, args])
                                                                                                         personalbarM                setTimeout(func, msecs[, args])
Bitwise
                                                                                                         pkcs11M                     showHelp(”url”)E
&            Bitwise AND
                                                                                                         prompterM                   showModalDialog(”url”[, args][, features])ES2.01
|            Bitwise OR
                                                                                                         returnValueE                showModelessDialog(”url”[, args][, features])E
^            Bitwise XOR                                       location                    17            screen                      sizeToContent()M
~            Bitwise NOT
                                                   hash               assign("url")                      screenLeftES1.2             stop()M
>           Right shift
                                                   hostname           replace(”url”)                     screenXMS1.2
>>>          Zero fill right shift
                                                   href                                                  screenYMS1.2
                                                   pathname                                              scrollbarsM
Miscellaneous
                                                   port                                                  scrollMaxXM1.4
,          Series delimiter
                                                   protocol                                              scrollMaxYM1.4
delete     Property destroyer
                                                   search                                                scrollXMS
in         Item in object
                                                                                                         scrollYMS
instanceof Instance of
                                                                                                         self
new        Object creator
this       Object self-reference                                history                        17        sidebarM
                                                                                                         status
typeof     Value type
                                                   currentM(signed)          back()                      statusbarM
void       Return no value
                                                   length                    forward()                   toolbarM
                                                   nextM(signed)             go(int | "url")             top
                                                   previousM(signed)                                     window
4                                                                                                                JavaScript Bible, 6th Edition. ©2007 Danny Goodman (dannyg.com). All Rights Reserved.

JavaScript and Browser Objects Quick Reference
                                       document                                          18                            All HTML Element Objects                                                 15
    activeElementE              clear()                                  onselectionchangeE   accessKey                addBehavior(”url”)E                            onactivateE
    alinkColor                  close()                                  onstopE              all[]E                   addEventListener(”evt”, func,capt)MS           onafterupdateE
    anchors[]                   createAttribute(”name”)E6MS                                   attributes[]             appendChild(node)                              onbeforecopyES1.3
    applets[]                   createCDATASection(”data”)M                                   baseURIM                 applyElement(elem[, type])E                    onbeforecutES1.3
    baseURIM                    createComment(”text”)E6MS                                     behaviorUrns[]E          attachEvent(”evt”, func)E                      onbeforedeactivateE
    bgColor                     createDocumentFragment()E6MS                                  canHaveChildrenE         blur()                                         onbeforeeditfocusE
    body                        createElement(”tagname”)                                      canHaveHTMLE             clearAttributes()E                             onbeforepasteES1.3
    charsetE                    createElementNS(”uri”, “tagname)                              childNodes[]             click()                                        onbeforeupdateE
    characterSetM               createEvent(”evtType”)MS                                      childrenES1.2            cloneNode(deep)                                onblur
    compatModeEM                createEventObject([evtObj])E                                  citeE6MS                 compareDocumentPosition(node)M1.4              oncellchangeE
    contentTypeM                createNSResolver(nodeResolver)M                               className                componentFromPoint(x, y)E                      onclick
    cookie                      createRange()M                                                clientHeight             contains(elem)E                                oncontextmenuEM
    defaultCharsetE             createStyleSheet([”url”[, index]])E                           clientLeftE              createControlRange()E                          oncontrolselectE
    defaultViewM                createTextNode(”text”)                                        clientTopE               detachEvent(”evt”, func)E                      oncopyES1.3
    designModeEM                createTreeWalker(root, what, filterfunc, exp)M1.4             clientWidth              dispatchEvent(evtObj)MS                        oncutES1.3
    doctypeM                    elementFromPoint(x, y)E                                       contentEditableES1.2     doScroll(”action”)E                            ondataavailableE
    documentElement             evaluate(”expr”, node, resolver, type, result)M               currentStyleE            dragDrop()E                                    ondatasetchangedE
    documentURIM1.7             execCommand(”cmd”[, UI][, param])EM1.3S1.3                    dateTimeE6M              fireEvent(”evtType”[, evtObj])E                ondatasetcompleteE
    domain                      getElementById(”ID”)                                          dataFldE                 focus()                                        ondblclick
    embeds[]                    getElementsByName(”name”)                                     dataFormatAsE            getAdjacentText(”where”)E                      ondeactivateE
    expandoE                    importNode(node, deep)M                                       dataSrcE                 getAttribute(”name”[, case])                   ondragES1.3
    fgColor                     open([”mimetype”][, “replace”])                               dir                      getAttributeNode(”name”)E6MS                   ondragendES1.3
    fileCreatedDateE            queryCommandEnabled(”commandName”)EM1.3                       disabled                 getAttributeNodeNS(”uri”, “name”)M             ondragenterES1.3
    fileModifiedDateE           queryCommandIndterm(”commandName”)                            documentES1.2            getAttributeNS(”uri”, “name”)M                 ondragleaveES1.3
    fileSizeE                   queryCommandState(”commandName”)                              filters[]E               getBoundingClientRect()E                       ondragoverES1.3
    forms[]                     queryCommandSupported(”commandName”)                          firstChild               getClientRects()E                              ondragstartES1.3
    frames[]                    queryCommandText(”commandName”)                               height                   getElementsByTagName(”tagname”)                ondropES1.3
    heightMS                    queryCommandValue(”commandName”)                              hideFocusE               getElementsByTagNameNS(”uri”, “name”)M         onerrorupdateE
    images[]                    recalc([all])E                                                id                       getExpression(”attrName”)E                     onfilterchangeE
    implementationE6MS          write(”string”)                                               innerHTML                getFeature(”feature”, “version”)M1.7.2         onfocus
    inputEncodingM1.8           writeln(”string”)                                             innerTextES              getUserData(”key”)M1.7.2                       onfocusinE
    lastModified                                                                              isContentEditableES1.2   hasAttribute(”attrName”)MS                     onfocusoutE
    linkColor                                                                                 isDisabledE              hasAttributeNS(”uri”, “name”)M                 onhelpE
    links[]                                                                                   isMultiLineE             hasAttributes()MS                              onkeydown
    location                                                                                  isTextEditE              hasChildNodes()                                onkeypress
    mediaE                                                                                    lang                     insertAdjacentElement(”where”, obj)E           onkeyup
    mimeTypeE                                                                                 languageE                insertAdjacentHTML(”where”, “HTML”)E           onlayoutcompleteE
    namePropE6                                                                                lastChild                insertAdjacentText(”where”, “text”)E           onlosecaptureE
    namespaces[]                                                                              length                   insertBefore(newNode, refNode)                 onmousedown
    parentWindowE                                                                             localNameMS              isDefaultNamespace(”uri”)M1.7.2                onmouseenterE
    plugins[]                                                                                 namespaceURIMS           isEqualNode(node)M1.7.2                        onmouseleaveE
    protocolE                                                                                 nextSibling              isSameNode(node)M1.7.2                         onmousemove
    referrer                                                                                  nodeName                 isSupported(”feature”, “version”)MS            onmouseout
    scripts[]E                                                                                nodeType                 item(index)                                    onmouseover
    securityE                                                                                 nodeValue                lookupNamespaceURI(”prefix”)M1.7.2             onmouseup
    selectionE                                                                                offsetHeight             lookupPrefix(”uri”)M1.7.2                      onmousewheelE
    strictErrorCheckingM1.8                                                                   offsetLeft               mergeAttributes(srcObj)E                       onmoveE
    styleSheets[]                                                                             offsetParent             normalize()                                    onmoveendE
    title                                                                                     offsetTop                releaseCapture()E                              onmovestartE
    URL                                                                                       offsetWidth              removeAttribute(”attrName”[, case])            onpasteES1.3
    URLUnencodedE                                                                             outerHTMLES1.3           removeAttributeNode(attrNode)E6MS              onpropertychangeE
    vlinkColor                                                                                outerTextES1.3           removeAttributeNS(”uri”, “name”)M              onreadystatechangeEMS1.2
    widthMS                                                                                   ownerDocument            removeBehavior(ID)E                            onresize
    xmlEncodingM1.8                                                                           parentElementES1.2       removeChild(node)                              onresizeendE
    xmlStandaloneM1.8                                                                         parentNode               removeEventListener(”evt”, func,capt)MS        onresizestartE
    xmlVersionM1.8                                                                            parentTextEditE          removeExpression(”propName”)E                  onrowenterE
                                                                                              prefixMS                 removeNode(childrenFlag)E                      onrowexitE
                                                                                              previousSibling          replaceAdjacentText(”where”, “text”)E          onrowsdeleteE
                       link                    37                      html             37    readyStateE              replaceChild(newNode, oldNode)                 onrowsinsertedE
                                                                                              recordNumberE            replaceNode(newNode)E                          onscrollE
    charset            (None)            onloadE        versionE6MS                           runtimeStyleE            scrollIntoView(topFlag)EMS2.02                 onselectstartES1.3
    disabled                                                                                  scopeNameE               setActive()E
    href                                                                                      scrollHeight             setAttribute(”name”, “value”[, case])
    hreflangE6MS                                                       head             37    scrollLeft               setAttributeNode(attrNode)E6MS
    media                                               profile                               scrollTop                setAttributeNodeNS(”uri”, “name”)M
    rel                                                                                       scrollWidth              setAttributeNS(”uri”, “name”, “value”)M
    rev                                                                                       sourceIndexE             setCapture(containerFlag)E
    sheetM                                                              title           37    style                    setExpression(”propName”, “expr”)E
    styleSheetE                                                                               tabIndex                 setUserData(”key”, data, handler)M1.7.2
                                                        text
    target                                                                                    tagName                  swapNode(nodeRef)E
    type                                                                                      tagUrnE                  tags(”tagName”)E
                                                                                              textContentM1.7          toString()
                                                                       base             37
                                                                                              title                    urns(”behaviorURN”)E
                                                        href                                  uniqueIDE
                                                        target                                unselectableE
                                                                                              width
                      script                   37
    defer                                                              meta             37
    event                                               charsetE
    htmlFor                                             content
    src                                                 httpEquiv
    text                                                name
    type                                                urlE
5                                                                                                                             JavaScript Bible, 6th Edition. ©2007 Danny Goodman (dannyg.com). All Rights Reserved.

JavaScript and Browser Objects Quick Reference
                                     body                                           18                 h1...h6            36                                         RangeMS                                  36
alink                       createControlRange()E                   onafterprintE          align                                      collapsed                             cloneContents()
background                  createTextRange()E                      onbeforeprintE                                                    commonAncestorContainer               cloneRange()
bgColor                     doScroll(”scrollAction”)E               onscrollE                                                         endContainer                          collapse([start])
bgPropertiesE
                                                                                                          br              36          endOffset                             compareBoundaryPoints(type,src)
bottomMarginE                                                                              clear                                      startContainer                        compareNode(node)
leftMarginE                                                                                                                           startOffset                           comparePoint(node, offset)
link                                                                                                                                                                        createContextualFragment("text")
noWrapE
                                                                                                    blockquote, q         36                                                deleteContents()
rightMarginE                                                                               citeE6MS                                                                         detach()
scrollE                                                                                                                                                                     extractContents()
scrollLeftEM                                                                                                                                                                insertNode(node)
scrollTopEM                                                                                              font             36                                                intersectsNode(node)
text                                                                                                                                                                        isPointInRange(node, offoffsetset)
                                                                                           color
topMarginE                                                                                                                                                                  selectNode(node)
                                                                                           face
vLink                                                                                                                                                                       selectNodeContents(node)
                                                                                           size
                                                                                                                                                                            setEnd(node,offset)
                                                                                                                                                                            setEndAfter(node)
                                                                                                                                                                            setEndBefore(node)
                  marquee                        36                    ol            38                   hr                  36                                            setStart(node,offset)
                                                                                                                                                                            setStartAfter(node)
 behaviorE         start()EM          onbounceE           start                            align                                                                            setStartBefore(node)
 bgColorE          stop()EM           onfinishE           type                             colorE                                                                           surroundContents(node)
 directionEM                          onstartE                                             noShade                                                                          toString()
 heightEM                                                                                  size
 hspaceEM
                                                                       ul            38    width
 loopE                                                    type
 scrollAmountEM
                                                                                                                                                                  TextRangeE                                 36
 scrollDelayEM
 trueSpeedE
                                                                        li           38                                                boundingHeight                     collapse([start])

 vspaceE                                                  type
                                                                                                      dl, dt, dd              38       boundingLeft                       compareEndPoints("type",range)
                                                                                                                                       boundingTop                        duplicate()
 widthE                                                   value                            compact                                     boundingWidth                      execCommand("cmd"[,UI[,val]])
                                                                                                                                       htmlText                           expand("unit")
                                                                                                                                       offsetLeft                         findText("str"[,scope,flags])
                                 canvasM1.8S1.3                                 20                      img               20           offsetTop                          getBookmark()
                                                                                                                                       text                               getBoundingClientRect()
 fillStyle                     arc(x, y, radius, start, end, clockwise)                   align          (None)      onabort                                              getClientRects()
 globalAlpha                   arcTo(x1, y1, x2, y2, radius)                              alt                        onerror                                              inRange(range)
 globalCompositeOperation      bezierCurveTo(cp1x, cp1y, cp2x, cp2y, x, y)                border                     onload                                               isEqual(range)
 lineCap                       beginPath()                                                completeEM                                                                      move("unit"[,count])
 lineJoin                      clearRect(x, y, width, height)                             dynsrcE                                                                         moveEnd("unit"[,count])
 lineWidth                     clip()                                                     fileCreatedDateE                                                                moveStart("unit"[,count])
 miterLimit                    closePath()                                                fileModifiedDateE                                                               moveToBookmark("bookmark")
 shadowBlur                    createLinearGradient(x1, y1, x2, y2)                       fileSizeE                                                                       moveToElementText(elem)
 shadowColor                   createPattern(img, repetition)                             fileUpdatedDateE                                                                moveToPoint(x,y)
 shadowOffsetX                 createRadialGradient(x1, y1, radius1, x2, y2, radius2)     height                                                                          parentElement()
 shadowOffsetY                 drawImage(img, x, y)                                       href                                                                            pasteHTML("HTMLText")
 strokeStyle                   drawImage(img, x, y, width, height)                        hspace                                                                          queryCommandEnabled("cmd")
 target                        fill()                                                     isMap                                                                           queryCommandIndeterm("cmd")
                               fillRect(x, y, width, height)                              longDescE6MS                                                                    queryCommandState("cmd")
                               getContext(contextID)                                      loopE                                                                           queryCommandSupported("cmd")
                               lineTo(x, y)                                               lowsrcEM                                                                        queryCommandText("cmd")
                               moveTo(x, y)                                               mimeTypeE6                                                                      queryCommandValue("cmd")
                               quadraticCurveTo(cpx, cpy, x, y)                           name                                                                            scrollIntoView()
                               rect(x, y, width, height)                                  namePropE                                                                       select()
                               restore()                                                  naturalHeightM                                                                  setEndPoint("type",range)
                               rotate(angle)                                              naturalWidthM
                               save()                                                     protocolE
                               scale(x, y)                                                src
                               stroke()                                                   startE
                               strokeRect(x, y, width, height)                            useMap
                               translate(x, y)                                            vspace                                                                                                a             19
                                                                                          width
                                                                                          xMS                                                                                    charsetE6MS
                                                                                          yMS                                                                                    coordsE6MS
                                                                                                                                                                                 hash
                                                                                                                                                                                 host
                                                                                                                                                                                 hostname
                    selection                            36                                                                                                                      href
                                                                                                                                                                                 hreflangE6MS
anchorNodeM             addRange(range)M                                                                map                   20                   area           20             MethodsE
anchorOffsetM           clear()E
focusNodeM                                                                                                        onscrollE            alt                                       mimeTypeE
                        collapse(node, offset)M                                           areas[]     (None)
focusOffsetM                                                                                                                           coords                                    name
                        collapseToEnd()M                                                  name
isCollapsedM                                                                                                                           hash                                      namePropE
                        collapseToStart()M
rangeCountM                                                                                                                            host                                      pathname
                        containsNode(node, entireFlag)M
typeE                                                                                                                                  hostname                                  port
                        createRange()E
typeDetailE                                                                                                                            href                                      protocol
                        deleteFromDocument()M
                                                                                                                                       noHref                                    rel
                        empty()E
                                                                                                                                       pathname                                  rev
                        extend(node, offset)M                                                  TextRectangleE                 36       port                                      search
                        getRangeAt(rangeIndex)M
                                                                                          bottom                                       protocol                                  shapeE6MS
                        removeAllRanges()M
                                                                                          left                                         search                                    target
                        removeRange(range)M
                                                                                          right                                        shape                                     typeE6MS
                        selectAllChildren(elementRef )M
                                                                                          top                                          target                                    urnE
                        toString()M
6                                                                                                        JavaScript Bible, 6th Edition. ©2007 Danny Goodman (dannyg.com). All Rights Reserved.

JavaScript and Browser Objects Quick Reference
                                   form                                       21                                                        table                                            38
acceptCharset                      reset()                         onreset                   align                             createCaption()                           onscroll
action                             submit()                        onsubmit                  backgroundE                       createTFoot()
autocompleteE                                                                                bgColor                           createTHead()
elements[]                                                                                   border                            deleteCaption()
encodingEM                                                                                   borderColorE                      deleteRow(i)
enctypeE6MS                                                                                  borderColorDarkE                  deleteTFoot()
length                                                                                       borderColorLightE                 deleteTHead()
method                                                                                       caption                           firstPage()E
name                                                                                         cellPadding                       insertRow(i)
target                                                                                       cellsE                            lastPage()
                                                                                             cellSpacing                       moveRow(srcIndex, destIndex)E
                                                                                             colsE                             nextPage()E
                                   input                                                     datePageSizeE                     previousPage()E
                                                                       22/23/24
                                                                                             frame                             refresh()E
checked(checkbox, radio)           select()(text, password)        onchange(text)            height
complete(image)                                                                              rows
defaultChecked(checkbox, radio)                                                              rules
defaultValue(text, password)                                                                 summaryE6MS
form                                                                                         tbodies
maxLength(text)                                                                              tFoot
name                                                                                         tHead
readOnly(text)                                                                               width
size(text)
src(image)
type
value
                                                                                                                         tbody, tfoot, thead                                            38
                                                                                             align                             deleteRow(i)
                                                                                             bgColor                           insertRow(i)
                                                                                             chE6MS                            moveRow(srcIndex, destIndex)E
                                  textarea                                        23         chOffE6MS
cols                               createTextRange()               onchange                  rows
form                               select()                                                  vAlign
name
readOnly
rows                                                                                                            tr                 38                           td, th                   38
type
value                                                                                        align                    deleteCell(i)          abbrE6MS
wrap                                                                                         bgColor                  insertCell(i)          align
                                                                                             borderColor                                     axisE6MS
                                                                                             borderColorDark                                 backgroundE
                                                                                             borderColorLight                                bgColor
                                   select                                     24             cells                                           borderColorE
                                                                                             chE6MS                                          borderColorDarkE
form                       add(newOption[, index])E                    onchange
                                                                                             chOffE6MS                                       borderColorLightE
length                     add(newOption, optionRef)MS
                                                                                             heightE                                         cellIndex
multiple                   remove(index)
                                                                                             rowIndex                                        chE
name
                                                                                             sectionRowIndex                                 chOffE
options[]
                                                                                             vAlign                                          colSpan
options[i].defaultSelected
                                                                                                                                             headers
options[i].index
options[i].selected                                                                                 col, colgroup                  38
                                                                                                                                             height
                                                                                                                                             noWrap
options[i].text
                                                                                             align                                           rowSpan
options[i].value
                                                                                             chE6MS                                          vAlign
selectedIndex
                                                                                             chOffE6MS                                       width
size
                                                                                             span
type
                                                                                             vAlign
value
                                                                                             width

                   option                     24                              caption   38
 defaultSelected                                              align
                                                                                                                                  navigator                                              39
 form                                                         vAlign                         appCodeName                         javaEnabled()
 label                                                                                       appMinorVersionE                    preference(name[, val])M(signed)
 selected                                                                                    appName
 text                                                                                        appVersion
 value                                                                                       browserLanguageE
                                                                                             cookieEnabled
                                                                                             cpuClassE
           fieldset, legend                   21                                             languageMS
align                                                                                        mimeTypesMS
                                                                                             onLineE
form                                                                          screen    39
                                                                                             oscpuMS
                                                              availHeight                    platform
                                                              availLeftMS                    pluginsMS
                   label                      21              availTopMS                     productMS
form                                                          availWidth                     productSubMS
htmlFor                                                       bufferDepthE                   securityPolicyM
                                                              colorDepth                     systemLanguageE
                                                              fontSmoothingEnabledE          userAgent
            optgroupE6MS                      24              height
                                                              pixelDepth
                                                                                             userLanguage
                                                                                             userProfileE
form                                                          updateIntervalE                vendorMS
label                                                         width                          vendorSubMS
7                                                                                                    JavaScript Bible, 6th Edition. ©2007 Danny Goodman (dannyg.com). All Rights Reserved.

JavaScript and Browser Objects Quick Reference
                       event                  25                                  XMLHttpRequestEMS1.2                                               27
    altKey                 initEvent()MS           readyState                 abort()                                      onreadystatechange
    altLeftE               initKeyEvent()MS        responseText               getAllResponseHeaders()
    behaviorCookieE6       initMouseEvent()MS      responseXML                getResponseHeader(”headerName”)
    behaviorPartE          initMutationEvent()MS   status                     open(”method”, “url”[, asyncFlag])
    bookmarksE6            initUIEvent()MS         statusText                 send(data)
    boundElementsE6        preventDefault()MS                                 setRequestHeader(”name”, “value”)
    bubblesMS              stopPropagation()MS
    button
    cancelableMS
    cancelBubble
                                                                        applet              39                           object                     39
    charCodeMS                                     align                    (Applet methods)         alignES                     (Object methods)
    clientX                                        altE6MS                                           altE6
    clientY                                        altHTMLE                                          altHTMLE
    contentOverflowE                               archiveE6MS                                       archiveE6MS
    ctrlKey                                        code                                              baseHrefE
    ctrlLeftE                                      codeBase                                          baseURIM
    currentTargetMS                                height                                            borderE6MS
    dataFldE6                                      hspace                                            classidE
    dataTransferES2                                name                                              code
    detailMS2                                      objectE                                           codeBase
    eventPhaseMS                                   vspace                                            codeType
    fromElementE                                   width                                             contentDocumentM
    isCharMS                                       (Applet variables)                                data
    isTrustedM1.7.5                                                                                  declareE6MS
    keyCode                                                                                          form
    layerXMS                                                        embed                   39       height
    layerYMS                                                                                         hspace
                                                   alignM
    metaKeyMS                                                                                        name
                                                   heightEM
    nextPageE                                                                                        objectE
                                                   hiddenE
    offsetXE                                                                                         standbyE6MS
                                                   name
    offsetYE                                                                                         type
                                                   pluginspageM
    originalTargetM                                                                                  useMapE6MS
                                                   srcM
    pageXMS                                                                                          vspace
                                                   unitsM
    pageYMS                                                                                          width
                                                   widthEM
    propertyNameE                                                                                    (Object variables)
                                                   (Object variables)
    qualifierE6
    reasonE6
    recordsetE6
    relatedTargetMS
                                                                 mimeTypeMS                 39
    repeatE                                        description
    returnValueES1.2                               enabledPlugin
    saveTypeE                                      type
    screenX                                        suffixes
    screenY
    shiftKey
    shiftLeftE                                                     pluginMS                 39
    srcElementES1.2
                                                   name                     refresh()
    srcFilterE
                                                   filename
    srcUrnE
                                                   description
    targetMS
                                                   length
    timeStampMS
    toElementE
    type
    viewMS
    wheelDataE
    xE
    yE

     Notes
8                                                                                                       JavaScript Bible, 6th Edition. ©2007 Danny Goodman (dannyg.com). All Rights Reserved.

JavaScript and Browser Objects Quick Reference
                                                 style                                             26
Text & Fonts                      Borders & Edges                        Inline Display & Layout
color                             border                                 clear
font                              borderBottom                           clip
fontFamily                        borderLeft                             clipBottomE
fontSize                          borderRight                            clipLeftE
fontSizeAdjustM                   borderTop                              clipRightE
fontStretchM                      borderBottomColor                      clipTopE
fontStyle                         borderLeftColor                        contentMS1.3
fontVariantEMS1.3                 borderRightColor                       counterIncrementM1.8
fontWeight                        borderTopColor                         counterResetM1.8
letterSpacing                     borderBottomStyle                      cssFloatMS
lineBreakE                        borderLeftStyle                        cursorEMS1.3
lineHeight                        borderRightStyle                       direction
quotesM                           borderTopStyle                         display
rubyAlignE                        borderBottomWidth                      filterE
rubyOverhangE                     borderLeftWidth                        layoutGridE
rubyPositionE                     borderRightWidth                       layoutGridCharE
textAlign                         borderTopWidth                         layoutGridLineE
textAlignLastE                    borderColor                            layoutGridModeE
textAutospaceE                    borderStyle                            layoutGridTypeE
textDecoration                    borderWidth                            markerOffsetM
textDecorationBlinkE              margin                                 marksM
textDecorationLineThroughE        marginBottom                           maxHeightE7MS
textDecorationNoneE               marginLeft                             maxWidth
textDecorationOverlineE           marginRight                            minHeight
textDecorationUnderlineE          marginTop                              minWidth
textIndent                        outlineM1.8.1S1.2                      MozOpacityM
textJustifyE                      outlineColorM1.8.1S1.2                 opacityM1.7.2S1.2
textJustifyTrimE                  outlineStyleM1.8.1S1.2                 overflow
textKashidaSpaceE                 outlineOffsetM1.8.1S1.2                overflowXEM1.8S1.2
textOverflowE6S1.3                outlineWidthM1.8.1S1.2                 overflowYEM1.8S1.2
textShadowMS1.2                   padding                                styleFloatE
textTransform                     paddingBottom                          verticalAlignEMS1.2
textUnderlinePositionE            paddingLeft                            visibility
unicodeBidi                       paddingRight                           width
whiteSpace                        paddingTop                             zoomE
wordBreakE                        Tables                                 Printing
wordSpacingE6MS                   borderCollapseEMS1.3                   orphansM
wordWrapES1.3                     borderSpacing                          widowsM
writingModeE                      captionSideMS                          pageM
Positioning                       emptyCellsMS1.3                        pageBreakAfterEMS1.3
bottom                            tableLayout                            pageBreakBeforeEMS1.3
height                                                                   pageBreakInsideM
                                  Lists
left                                                                     sizeM
                                  listStyle
pixelBottomES                     listStyleImage                         Miscellaneous
pixelHeightES                     listStylePosition                      acceleratorE
pixelLeftES                       listStyleType                          behaviorE
pixelRightES                                                             cssTextEMS1.3
pixelTopES                        Background
                                  background                             imeModeE
pixelWidthES
posBottomE                        backgroundAttachmentEMS1.2             Scrollbars
posHeightE                        backgroundColor                        scrollbar3dLightColorE
posLeftE                          backgroundImage                        scrollbarArrowColorE
posRightE                         gackgroundPosition                     scrollbarBaseColorE
posTopE                           backgroundPositionXES1.3               scrollbarDarkShadowColorE
posWidthE                         backgroundPositionYES1.3               scrollbarFaceColorE
position                          backgroundRepeat                       scrollbarHighlightColorE
right                                                                    scrollbarShadowColorE
top                                                                      scrollbarTrackColorE
width
zIndex

                   styleSheet                         26            style (element)                26
cssRulesMS          addImport(”url”[, index])E              media
cssTextE            addRule(”selector”, “spec”[, index])E   type
disabled            deleteRule(index)MS
href                insertRule(”rule”, index)MS
idE                 removeRule(index)E
importsE
media
ownerNodeMS
ownerRuleMS                                                             cssRule, rule              26
owningElementE
pagesE                                                      cssTextMS
parentStyleSheet                                            parentStyleSheetMS
readOnlyE                                                   readOnlyE
rules                                                       selectorText
title                                                       style
type                                                        typeMS
You can also read