please dont rip this site
JScript / JavaScript Features

The oxherders guide is more compact. VisiBone^ has more examples.

Contents
Scripting Runtime objects

Document Object Model
non-ecma features are presented with a grey background
Also: HTML Scripting DOM
Extensions that may be added by the user are presented with a light yellow background Items related to internet browser scripting and document object models are presented with a light blue background
Control flow Assignments / Declarations
for ( init ; test ; inc ) stmt
for (var in [obj | ary]) stmt
if (cond ) stmt [else stmt] (cond ? stmt : stmt )
return [exp]
while ( exp ) stmt
&&, ||, break, continue
do stmt while ( exp )
label : stmt
switch ( exp ) {
case
 label : stmt ;case label : stmt ; ...]
[break;]
default :
 stmt ; }
var name [ = exp ]
Assign (=) eg: variable = exp;
Compound Assign (Operator=) eg: variable += exp;
variable = new ObjectType [(arguments)]
variable = new function ( "parameters", "stmt" )
this.property
with ( obj ) stmt
Arrays Constants/Literals
new Array([size|elem[,elem]]) ary.length
ary.join(seperator) str.split(regExp)
ary.reverse()
ary.sort([sortFunc])
for...in
ary1.concat(ary2) ary1.slice(start,[end])
VBArray: toArray, getItem,
dimensions, lbound, ubound
Enumerator: atEnd, item, moveFirst, moveNext
array.At(index)
array.Max(args)
Boolean:
 true: object, non-empty string, non zero
 false: 0, null, NaN, undefined, empty string
Numbers: MAX_VALUE, MIN_VALUE, NaN, NEGATIVE_INFINITY, POSITIVE_INFINITY,Infinity
Math.PI,Math.E
Numbers
Math object: abs, ceil, floor, max, min, random, round, acos, asin, atan, atan2, cos, exp, log, pow, sin, sqrt, tan, E, LN2, LN10, LOG2E, LOG10E, PI, SQRT1_2, SQRT2
parseInt(numstr [, radix]) parseFloat(numstr)
isFinite(num)
isNaN(num)
formatNumber | formatPercent | formatCurrency  (num, decs, zeros, parens, commas)
Object Creation www.crockford.com/javascript/private.html Document Object
new { Array | Boolean | DateFunctionGlobalMath | NumberObject | String } [(arguments)]
obj.constructor  obj.prototype
obj.toString() obj.valueOf() obj.typeOf(exp)
elementFromPoint(x,y)
getElementById(sIDValue)
getElementsByName(sNameValue)
getElementsByTagName(sTagName)
getElementsByClass(searchClass, node, tag)
Strings see also User defined functions Regular Expressions Syntax
String object str.length
str.substr(start [, length ]) str.substring(start, end)
str.charAt(idx) str.charCodeAt(idx) String.fromCharCode(code [, code])
str.indexOf(substr, start) str.lastIndexOf(substr, start)
str.split(regExp) ary.join(seperator)
toLowerCase, toUpperCase
escape, unescape
concat, slice
match, replace, search
anchor, big, blink, bold, fixed, fontcolor, fontsize, italics, link, small, strike, sub, sup
formatNumber, formatPercent, formatCurrency, formatDateTime
LTrim, RTrim, Trim, Len, Left, Right, Mid, inStr
RegExp
index, input ($_), lastIndex, lastMatch ($&), lastParen ($+), leftContext ($'), multiline ($*), rightContext ($'), $1...$9
Regular Expression
global, ignorecase, lastIndex, source
compile(pattern), exec(str), test(str)
Operators
Addition (+), Subtraction (-)
Modulus arithmetic (%)
Multiplication (*), Division (/)
Negation (-)
Bitwise And (&), Or (|), Not (~), Xor (^)
Bitwise Left Shift (<<), Shift Right (>>)
Unsigned Shift Right (>>>)
Decrement (--), Increment (++)
Equality (==), Inequality (!=)
Less Than (<), Less Than or Equal To (<=)
Greater Than (>), Greater Than or Equal To (>=)
Logical And(&&), Or (||), Not (!)
Conditional (?:)
Comma (,)
delete, typeOf, void
Dates and Time
Date object: toGMTString, toLocaleString, toUTCString, parse, UTC, getDay, getUTCDay,
getDate, getFullYear, getMonth, getYear, getUTCDate, getUTCFullYear, getUTCMonth,
setDate, setFullYear, setMonth, setYear, setUTCDate, setUTCFullYear, setUTCMonth,
addToDate(date,hours,minutes)
getHours, getMilliseconds, getMinutes, getSeconds, getTime, getUTCHours, getUTCMilliseconds, getUTCMinutes, getUTCSeconds, getTimezoneOffset,
setHours, setMilliseconds, setMinutes, setSeconds, setTime, setUTCHours, setUTCMilliseconds, setUTCMinutes, setUTCSeconds,

timeoutID=setTimeout(action,msec)

Function Creation Global Functions
function ( arguments ) stmt
return
length
prototype, constructor
caller
Global
escape, unescape
eval
isFinite, isNaN
parseInt, parseFloat
Comments Input / Output
/*...*/ or // event: .clientX,.clientY,
alert, document.write, window.status
ajax


© 1997 by Microsoft Corporation. All rights reserved.

See:

See also:

Comments:


file: /Techref/inet/iis/jscript/htm/js429.htm, 20KB, , updated: 2013/7/23 10:48, local time: 2017/9/26 04:02,
TOP NEW HELP FIND: 
54.159.113.182:LOG IN

 ©2017 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/inet/iis/jscript/htm/js429.htm"> Microsoft JScript Features - ECMA</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

  PICList 2017 contributors:
o List host: MIT, Site host massmind.org, Top posters @20170926 RussellMc, James Cameron, Van Horn, David, Sean Breheny, alan.b.pearce, IVP, Neil, Bob Blick, David C Brown, Denny Esterline,
* Page Editors: James Newton, David Cary, and YOU!
* Roman Black of Black Robotics donates from sales of Linistep stepper controller kits.
* Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters.
* Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated!
* Contributors: Richard Seriani, Sr.
 

Welcome to www.piclist.com!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .