Contents

Functions Comments

Script Global Functions & Variables

alert • Displays an alert box with a message and an OK button.

alert("Message")

Example:


alert("Hello World");

confirm • Display a dialog box with a message, along with an OK and a Cancel button.

confirm("Message")

Example:


var Result=confirm("Would you like to continue?");

prompt • Displays a dialog box that prompts the user for input.

prompt("Message",Value)

Example:


var Name=prompt("What is your name?");

NaN • A number variable that is not a number.

NaN

Infinity • A number variable that is infinite.

Infinity

undefined • A variable that has not been defined.

undefined

null • A number variable with no value.

null

parseInt • Convert a string to a whole number.

parseInt(Value:Object,Radix:Number)

Example:


var WholeNumber=parseInt("123");

parseFloat • Convert a string to a floating point number.

parseFloat(Value:Object)

Example:


var DecimalNumber=parseFloat("3.142");

isNaN • Test to see if a variable is not a number.

isNaN(Value:Object)

isFinite • Test to see if a variable is not infinite.

isFinite(Value:Object)

encodeURI • Encode a URI or URL.

encodeURI("Value")

decodeURI • Decode a URI or URL.

decodeURI("Value")

encodeURIComponent • Encode a component of a URI or URL.

encodeURIComponent("Value")

decodeURIComponent • Decode a component of a URI or URL.

decodeURIComponent("Value")

escape • Encode a URI or URL.

escape("Value")

unescape • Decode a URI or URL.

unescape("Value")

Functions Comments