Cool web site - Core JavaScript/JScript/ECMAScript (NN2+, IE3+) Quick Reference ‘ 2001

Core JavaScript/JScript/ECMAScript (NN2+, IE3+) Quick Reference ‘ 2001 Danny Goodman (www.dannyg.com). All Rights Reserved. constructor N4, IE4 lengthprototype concat(array2)N4, IE4 join(”char”) push()N4, IE5.5 pop()N4, IE5.5reverse() shift()N4, IE5.5slice(i,[j]) N4, IE4 sort(compareFunc) splice(i,j[, items])N4, IE5.5 toLocaleString() N6, IE5.5 toString() unshift()N4, IE5.5 ArrayN3,J2 37 constructor N4, IE4 prototypeN3, IE4 getFullYear()N4, J2 getYear() getMonth() getDate() getDay() getHours() getMinutes() getSeconds() getTime() getMilliseconds() N4, J2 getUTCFullYear()N4, J2 getUTCMonth()N4, J2 getUTCDate()N4, J2 getUTCDay()N4, J2getUTCHours()N4, J2getUTCMinutes()N4, J2getUTCSeconds() N4, J2getUTCMilliseconds() N4, J2 setYear(val) setFullYear( val)N4, J2 setMonth(val) setDate(val) setDay(val) setHours(val) setMinutes( val) setSeconds( val) setMilliseconds( val)N4, J2 setTime(val) setUTCFullYear(val)N4, J2 setUTCMonth(val)N4, J2 setUTCDate(val)N4, J2 setUTCDay(val)N4, J2 setUTCHours(val)N4, J2 setUTCMinutes( val)N4, J2 setUTCSeconds( val)N4, J2 setUTCMilliseconds( val)N4, J2 getTimezoneOffset() toDateString()IE5.5toGMTString() toLocaleDateString() IE5.5, N6 toLocaleString() toLocaleTimeString() IE5.5, N6 toString() toTimeString()IE5.5 toUTCString()N4, J2 Date.parse(”dateString”) Date.UTC(date values) Date 36 (1)Method of the static String object. (2)Added behavior in N4 includes: ability to accept a regexpparameter; second parameter (limit integer) to limit the number ofsplits to be included; a space string parameter signifying any whitespace character. constructor N4, IE4 lengthprototypeN4, J2 anchor(”anchorName”) big() blink() bold() charAt(index) charCodeAt([i])N4, IE4 concat(string2)N4, IE4 fixed() fontcolor(#rrggbb) fontsize(1to7) fromCharCode(n1…)(1),N4, IE4 indexOf(”str” [,i]) italics() lastIndexOf(”str” [,i]) link(URL) localeCompare() N6, IE5.5 match(regexp)N4, IE4 replace(regexp,str)N4, IE4 search(regexp)N4, IE4 slice( i,j)N4, IE4 small() split( char)N3, (2), IE4 strike() sub() substr(start,length)N4, IE4 substring( intA, intB) sup() toLocaleLowerCase() N6, IE5.5 toLocaleUpperCase() N6, IE5.5 toLowerCase() toString()N4, IE4toUpperCase() valueOf()N4, IE4String(1)Property of the static RegExp object. (2)Returns an array with properties: index, input, [0], [1],…[n]. globalignoreCaseinput (1), IE5.5lastIndexmultiline (1), IE5.5lastMatch (1), IE5.5 lastParen (1), IE5.5leftContext (1), IE5.5 prototyperightContext (1) source$1…$9 compile( regexp) exec(”string”)(2) test(”string”) str.match(regexp) str.replace(regexp,str) str.search(regexp) str.split( regexp[,limit]) Regular ExpressionsN4,IE4 3438 BooleanN3,J2 35 constructor N4, IE4 toString()N4, IE4 prototype valueOf()N4, IE4 (1)Discontinued for N6. argumentsarityN4caller (1) constructor N4, IE4 lengthprototype apply(this, argsArray)N6, IE5.5 call(this[,arg1[,…argN]])N6, IE5.5 toString() valueOf() FunctionN3,J2 constructor N4, IE4MAX_VALUEMIN_VALUENaNNEGATIVE_INFINITYPOSITIVE_INFINITYprototype toExponential( n)N6, IE5.5 toFixed(n)N6, IE5.5toLocaleString() N6, IE5.5 toString([radix])N4, IE4 toPrecision( n)N6, IE5.5 valueOf()N4, IE4 NumberN3,J2(1)All properties & methods are of the static Math object. ELN2LN10LOG2ELOG10EPISQRT1_2SQRT2 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) Math(1) FunctionsdecodeURI(”encodedURI”)N6, IE5.5 decodeURIComponent(”encComp”)N6, IE5.5 encodeURI(”URIString”)N6, IE5.5encodeURIComponent(”compString”)N6, IE5.5 escape(”string” [,1]) eval(”string”) isFinite( number)N4, IE4 isNaN(expression) Number(string)N4, IE4 parseFloat(”string”) parseInt(”string” [,radix]) toString([radix]) unescape(”string”) unwatch(prop)N4 watch(prop, handler)N4GlobalsStatements// /*…*/ const N6 var 35 354142 JSB4 Control Statements39 if (condition) { statementsIfTrue} if (condition) { statementsIfTrue} else { statementsIfFalse} result = condition ? expr1 : expr2 for ([init expr]; [condition]; [updateexpr]) { statements} for (var in object) { with (object) { statements statements } } while (condition) { do { statements statements } } while (condition)N4, IE4 switch (expression) { case labelN : statements [break] … [default :statements] }N4, IE4 label : N4, IE4continue [ label]N4, IE4 break [label]N4, IE4 try { statements to test} [catch (errorInfo) { statements if exception occurs in try block}] [finally { statements to run, exception or not}]N6, W5 throw valueN6, W5 Error N6,W5 39 prototypetoString() constructordescription W5 fileName N6lineNumber N6 message N6, IE5.5 nameN6, IE5.5 numberW5 1435Appendix A .JavaScript and Browser Object Quick Reference
If you are in need for cheap and reliable webhost to host your website, we recommend http web server services.

Leave a Reply