JavaScript Functions
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
The following table lists JavaScript functions.
|
Function |
Description |
JavaScript object |
|---|---|---|
|
Returns the absolute value of a number. |
Math |
|
|
Returns the arccosine of a number. |
Math |
|
|
Returns the arcsine of a number. |
Math |
|
|
Returns the arctangent of a number. |
Math |
|
|
Returns the angle (in radians) from the X axis to a point (y,x). |
Math |
|
|
Returns the smallest integer greater than or equal to its numeric argument. |
Math |
|
|
Returns the cosine of a number. |
Math |
|
|
Creates an object that has a specified prototype, and that optionally contains specified properties. |
Object |
|
|
Returns the unencoded version of an encoded Uniform Resource Identifier. |
Global |
|
|
Returns the unencoded version of an encoded component of a Uniform Resource Identifier. |
Global |
|
|
Adds one or more properties to an object, and/or modifies attributes of existing properties. |
Object |
|
|
Adds a property to an object, or modifies attributes of an existing property. |
Object |
|
|
Encodes a text string as a valid Uniform Resource Identifier. |
Global |
|
|
Encodes a text string as a valid component of a Uniform Resource Identifier. |
Global |
|
|
Encodes String objects so they can be read on all computers. |
Global |
|
|
Evaluates JavaScript code and executes it. |
Global |
|
|
Returns e (the base of natural logarithms) raised to a power. |
Math |
|
|
Returns the greatest integer less than or equal to its numeric argument. |
Math |
|
|
Prevents the modification of existing property attributes and values, and prevents the addition of new properties. |
Object |
|
|
Returns a string from a number of Unicode character values. |
String |
|
|
Returns a reference to an Automation object from a file. |
Global |
|
|
Returns the definition of a data property or an accessor property. |
Object |
|
|
Returns the names of the properties and methods of an object. |
Object |
|
|
Returns the prototype of an object. |
Object |
|
|
Returns a Boolean value that indicates whether an object is an array. |
Array |
|
|
Returns a value that indicates whether new properties can be added to an object. |
Object |
|
|
Returns a Boolean value that indicates if a supplied number is finite. |
Global |
|
|
Returns true if existing property attributes and values cannot be modified in an object and new properties cannot be added to the object. |
Object |
|
|
Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number). |
Global |
|
|
Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object. |
Object |
|
|
Returns the names of the enumerable properties and methods of an object. |
Object |
|
|
Returns the natural logarithm of a number. |
Math |
|
|
Returns the greater of two supplied numeric expressions. |
Math |
|
|
Returns the lesser of two supplied numbers. |
Math |
|
|
Returns the number of milliseconds between January 1, 1970, and the current date and time. |
Date |
|
|
Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970. |
Date |
|
|
De-serializes JSON text to produce an in-memory object or array. |
JSON |
|
|
Returns a floating-point number converted from a string. |
Global |
|
|
Returns an integer converted from a string. |
Global |
|
|
Returns the value of a base expression raised to a specified power. |
Math |
|
|
Prevents the addition of new properties to an object. |
Object |
|
|
Returns a pseudorandom number between 0 and 1. |
Math |
|
|
Returns a specified numeric expression rounded to the nearest integer. |
Math |
|
|
Returns a string representing the scripting language in use. |
Global |
|
|
Returns the build version number of the scripting engine in use. |
Global |
|
|
Returns the major version number of the scripting engine in use. |
Global |
|
|
Returns the minor version number of the scripting engine in use. |
Global |
|
|
Prevents the modification of attributes of existing properties, and prevents the addition of new properties. |
Object |
|
|
Returns the sine of a number. |
Math |
|
|
Returns the square root of a number. |
Math |
|
|
Serializes an object or array into JavaScript Object Notation (JSON) text. |
JSON |
|
|
Returns the tangent of a number. |
Math |
|
|
Decodes String objects encoded with the escape method. |
Global |
|
|
Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the supplied date. |
Date |
|
|
Sends strings to the script debugger. |
Debug |
|
|
Sends strings to the script debugger, followed with a newline character. |
Debug |