object.onevent - assign function ('event handler') to this event of the Object. object.properties - can be set or used as reference. object.methods() - method of the Object. window.onBlur - user leaves window. window.onError - loading trigger error. window.onerror = null|window.onerror = errorhandler. errorhandler(message,url,linenumber). window.onFocus - user enters window. window.onLoad - loading finishes. window.onUnload - user leaves page. window.defaultStatus - default value of states message. window.name - used to address window. window.opener - calling window. window.self - the current window. window.status - string value of status message. window.alert() - calls alert dialog. window.blur() - sends to back. window.close() - closes window. window.confirm() - calls confirm dialog. window.focus() - brings to front (focus). window.open() - opens new window. var win = window.open('loc.html','title','status=no,'[options]') Options: resizable,menubar,toolbar,location,directories,scrollbars,status window.prompt() - calls prompt dialog. window.scroll() - scrolls the window. window.setTimeout - pauses before execution. window.clearTimeout - clears timer. window.setInterval() - sets a function to execute on an interval. window.clearInterval() - clears interval timer. window.resizeTo() - resizes the current window to a specified point. window.resizeBy() - resizes the current window by a specified amount. window.moveTo() - moves the current window to a specified point. window.moveBy() - moves the current window by a specified amount. window.scrollTo() - scrolls the current window to a specified point. window.scrollBy() - scrolls the current window by a specified amount. window.location.hash - anchor portion of URL. window.location.host - hostname and port portion of URL. window.location.hostname - host and domain. window.location.href - entire URL. window.location.pathname - document's directory path. window.location.port - port number on server. window.location.protocol - beginning of URL to colon (http:). window.location.search - query information. window.location.target - specifies the window or frame where page will be loaded. window.location.text - a string containing the content of the corresponding A (anchor) tag. window.location.reload() - reloads current page. use reload(true) to force a refresh from server. window.location.replace() - loads a new URL over current document. use replace('http://www.url.dom') to disable 'back' and 'forward' history. window.history.length - number of entries in browser history. window.history.go(n) - moves to n places in history entry. window.history.back() - moves back 1 place in history entry. window.history.forward() - moves forward 1 place in history entry. window.document.alinkColor - color of link when clicked. window.document.bgColor - color of background. window.document.cookie - string stored on client machine. window.document.fgColor - color of text. window.document.lastModified - date of last modification. window.document.linkColor - color of links. window.document.referrer - URL of calling document. window.document.title - title of page. window.document.url - Uniform Resource Locator (address) of document. window.document.vlinkColor - color of followed links. window.document.clear() window.document.close() window.document.getSelection() - returns a string containing the text selected in the document. window.document.open() window.document.write() window.document.writeln() window.document.anchors[] window.document.anchors[].length - number of anchors in document. window.document.images[].onAbort - image laoding stops. window.document.images[].onError - error encoutered in loading image. window.document.images[].onLoad - image loading completed. window.document.images[].border - border size in pixels. window.document.images[].complete - true if fully loaded. window.document.images[].height - image height in pixels. window.document.images[].hspace - horizontal margin. window.document.images[].length (array) - number of images in document. window.document.images[].lowsrc - source file of preliminary images. window.document.images[].name - value of name attribute. window.document.images[].src - image source file. window.document.images[].vspace - vertical margin. window.document.images[].width - image width in pixels. window.document.links[] window.document.links[].onClick - user clicks link. window.document.links[].onMouseOut - mouse moves off link. window.document.links[].onMouseOver - mouse moves over link. window.document.links[].hash - anchor portion of URL. window.document.links[].host - hostname and port portion of URL. window.document.links[].hostname - host and domain. window.document.links[].href - entire URL. window.document.links[].pathname - document's directory path. window.document.links[].port - port number on server. window.document.links[].protocol - beginning of URL to colon (http:). window.document.links[].search - query information. window.document.links[].target - target frame of link. window.document.links[].forms[]* Netscape Components: Position-Related Window Properties window.innerHeight window.innerWidth window.outerHeight window.outerWidth window.screenX window.screenY window.alwaysRaised window.alwaysLowered Chrome-Related Window Properties window.locationbar window.menubar window.personalbar window.scrollbars window.statusbar window.toolbar window.print() - Prints the current document. window.find() - Searches the current document for a key word.
Frames frames - frames array includes all child frames. Length is its only property. name - value of name attribute. length - number of child frames. parent - framesetting window or frame. self - current frame. window - current frame. top - top-level frameset window.
document.forms[].onSubmit document.forms[].onReset document.forms[].action document.forms[].encoding document.forms[].length document.forms[].method document.forms[].target document.forms[].submit() document.forms[].reset() document.forms[].elements[] document.forms[].button document.forms[].button.onClick document.forms[].button.name document.forms[].button.value document.forms[].button.type document.forms[].radio document.forms[].radio.onClick document.forms[].radio.checked document.forms[].radio.defaultChecked document.forms[].radio.length document.forms[].radio.name document.forms[].radio.value document.forms[].radio.type document.forms[].radio.click() document.forms[].text/textarea document.forms[].text/textarea.onFocus document.forms[].text/textarea.onBlur document.forms[].text/textarea.onChange document.forms[].text/textarea.onSelect document.forms[].text/textarea.defaultValue document.forms[].text/textarea.name document.forms[].text/textarea.value document.forms[].text/textarea.type document.forms[].text/textarea.focus() document.forms[].text/textarea.blur() document.forms[].text/textarea.select() document.forms[].hidden document.forms[].hidden.name document.forms[].hidden.value document.forms[].hidden.type document.forms[].checkbox document.forms[].checkbox.onClick document.forms[].checkbox.name document.forms[].checkbox.value document.forms[].checkbox.type document.forms[].checkbox.checked document.forms[].checkbox.defaultChecked document.forms[].checkbox.click() document.forms[].fileUpload document.forms[].fileUpload.onFocus document.forms[].fileUpload.onBlur document.forms[].fileUpload.onChange document.forms[].fileUpload.name document.forms[].fileUpload.value document.forms[].fileUpload.type document.forms[].fileUpload.focus() document.forms[].fileUpload.blur() document.forms[].password document.forms[].password.defaultValue document.forms[].password.name document.forms[].password.value document.forms[].password.type document.forms[].password.focus() document.forms[].password.blur() document.forms[].password.select() document.forms[].select document.forms[].select.onFocus document.forms[].select.onBlur document.forms[].select.onChange document.forms[].select.name document.forms[].select.length document.forms[].select.selectedIndex document.forms[].select.value document.forms[].select.type document.forms[].select.focus() document.forms[].select.blur() document.forms[].select.options[] document.forms[].select.options[].name document.forms[].select.options[].defaultSelected() document.forms[].select.options[].index document.forms[].select.options[].length document.forms[].select.options[].selected document.forms[].select.options[].selectedIndex document.forms[].select.options[].text document.forms[].select.options[].value document.forms[].reset document.forms[].reset.onClick document.forms[].reset.name document.forms[].reset.value document.forms[].reset.type document.forms[].reset.click()
objects: Array() Array.length Array.join([';']) - joins array elements into a string seperated by commas. If you give it a seperator (':'), it uses this instead. Array.reverse() - reverses order of entries. Array.sort([function]) - sorts array elements in alphabetical order. If you give it a comparison function, this order is used instead. .sort(compare) function compare(a,b) - return a-b : returns negative or false if number a is less than b. Math Math.E - base of natural logarithms (2.718...). Math.LN2 - natural logarithm of 2 (0.693...). Math.LN10 - natural logarithm of 10 (2.302...). Math.LOG2E - base two logarithm of e (1.442...). Math.LOG10E - base ten logarithm of e (0.434...). Math.PI - ratio of circumference to diameter (3.14159...). Math.SQRTI_2 - square root of one-half (0.707...). Math.SQRT2 - square root of two (1.414...). Math.abs(n) - returns absolute value of n. Math.acos(n) - returns arc cosine of n. Math.asin(n) - returns arc sine of n. Math.atan(n) - returns arc tangent of n. Math.atan2(n,m) - returns angle of polar coordinate. Math.ceil(n) - rounds up to next integer. Math.cos(n) - returns cosine of n. Math.exp(n) - returns e to the n. Math.floor(n) - rounds down to next integer. Math.log(n) - returns natural logarithm of n. Math.max(n,m) - returns greater of n and m. Math.min(n,m) - returns lesser of n and m. Math.pow(n,m) - returns n to the m. Math.random() - returns random number between zero and one. Math.round(n) - rounds to closest integer. Math.sin(n) - returns sine of n. Math.sqrt(n) - returns square root on n. Math.tan(n) - returns tangent of n. Date() - () = blank object. (97,03,04,09,30,22) - March 04 1997 09:30:22. date().[UTC] - can be used with all methods. example getUTCDate(). Date().getDate() - returns an integer from 1 - 31. Date().getDay() - returns 0 (Sunday) - 6 (Saturday). Date().getHours() - returns 0 (midnight) - 23 (11pm). Date().getMinutes() - returns 0 - 59. Date().getMonth() - returns 0 (January) - 11 (December). Date().getSeconds() - returns 0 - 59. Date().getMilliseconds()- returns xxxx. Date().getTime() - returns number of milliseconds since Jan 1, 1970. Date().getYear() - returns last two digits of the year in JavaScript < 1.3|4 digits in >=1.3. Date().getFullYear() - returns xxxx year format. Date().getTimezoneOffset() - returns difference b/w Greenwich Mean Time (Zulu) and local time in minutes. Date().setDate(n) - sets the date to n. Date().setHours(n) - sets the hours to n. Date().setMinutes(n) - sets the minutes to n. Date().setMonth(n) - sets the day of the month to n. Date().setSeconds(n) - sets the seconds to n. Date().setTime(n) - sets the number of milliseconds since 1/1/70 to n. Date().setYear(n) - sets the year to n. Date().setFullYear() - sets the year to n in xxxx format. Date().toLocaleString(n) Date().toUTCString() Date().toGMTString(n) String() String().length String().charAt(n) - returns character before n. String().indexOf(text[,n]) - returns first occurence of text in string. begins searching at n. String().lastIndexOf(text) - returns last occurence of text in string. String().split(text) - returns array of substrings all split at text. String().substring(n,m) - returns substring from character n to one bfore character m. String().toLowerCase() - returns string in lowercase. String().toUpperCase() - returns string in uppercase. String().anchor() - surrounds string with anchor tag. String().big() - surrounds string with BIG tag. String().blink() - surrounds string with BLINK tag. String().bold() - surrounds string with B tag. String().fixed() - surrounds string with TT tag. String().fontcolor(n) - given color, surrounds string with FONT COLOR tags. String().fontsize(n) - given size, surrounds string with FONT SIZE tags. String().italics() - surrounds string with italics tag. String().link(URL) - given a URL, surrounds string with link tag. String().small() - surrounds string with SMALL tag. String().strike() - surrounds string with STRIKE tag. String().sub() - surrounds string with SUB tag. String().sup() - surrounds string with SUP tag. navigator navigator.appCodeName - browser code name (Mozilla). navigator.appName - brower type (Netscape or Microsoft Internet Explorer). navigator.appVersion - browser release number, platform, and country. navigator.userAgent - browser code name and version. navigator.javaEnabled() - returns true if java is enabled.