The following table lists JavaScript methods.
Methods
| Method | Description | JavaScript object |
|---|---|---|
| anchor method | Places an HTML anchor that has a NAME attribute around text. | String |
| apply method | Applies a method of an object, substituting another object for the current object. | Function |
| atEnd method | Returns a Boolean value indicating if the enumerator is at the end of the collection. | Enumerator |
| big method | Places HTML <BIG> tags around text. | String |
| bind method | Creates a function that is associated with a specified object, and that can have specific initial parameters. | Function |
| blink method | Places HTML <BLINK> tags around text. | String |
| bold method | Places HTML <B> tags around text. | String |
| call method | Calls a method of an object, substituting another object for the current object. | Function |
| charAt method | Returns the character at the specified index. | String |
| charCodeAt method | Returns the Unicode encoding of the specified character. | String |
| compile method | Compiles a regular expression into an internal format. | Regular Expression |
| concat method (Array) | Returns a new array consisting of a combination of two arrays. | Array |
| concat method (String) | Returns a String object containing the concatenation of two supplied strings. |
String |
| dimensions method | Returns the number of dimensions in a VBArray. | VBArray |
| every method | Checks whether a defined callback function returns true for all elements in an array. |
Array |
| exec method | Executes a search for a match in a specified string. | Regular Expression |
| filter method | Calls a defined callback function on each element of an array, and returns an array of values for which the callback function returns true. |
Array |
| fixed method | Places HTML <TT> tags around text. | String |
| fontcolor method | Places HTML <FONT> tags with a COLOR attribute around text. | String |
| fontsize method | Places HTML <FONT> tags with a SIZE attribute around text. | String |
| forEach method | Calls a defined callback function for each element in an array. | Array |
| getDate method | Returns the day-of-the-month value using local time. | Date |
| getDay method | Returns the day-of-the-week value using local time. | Date |
| getFullYear method | Returns the year value using local time. | Date |
| getHours method | Returns the hours value using local time. | Date |
| getItem method | Returns the item at the specified location. | VBArray |
| getMilliseconds method | Returns the milliseconds value using local time. | Date |
| getMinutes method | Returns the minutes value using local time. | Date |
| getMonth method | Returns the month value using local time. | Date |
| getSeconds method | Returns seconds value using local time. | Date |
| getTime method | Returns the time value in a Date Object as the number of milliseconds since midnight January 1, 1970. |
Date |
| getTimezoneOffset method | Returns the difference in minutes between the time on the host computer and Universal Coordinated Time (UTC). | Date |
| getUTCDate method | Returns the day-of-the-month value using UTC. | Date |
| getUTCDay method | Returns the day-of-the-week value using UTC. | Date |
| getUTCFullYear method | Returns the year value using UTC. | Date |
| getUTCHours method | Returns the hours value using UTC. | Date |
| getUTCMilliseconds method | Returns the milliseconds value using UTC. | Date |
| getUTCMinutes method | Returns the minutes value using UTC. | Date |
| getUTCMonth method | Returns the month value using UTC. | Date |
| getUTCSeconds method | Returns the seconds value using UTC. | Date |
| getVarDate method | Returns the VT_DATE value in a Date object. |
Date |
| getYear method | Returns the year value . | Date |
| hasOwnProperty method | Returns a Boolean value that indicates whether an object has a property with the specified name. | Multiple |
| indexOf method (Array) | Returns the index of the first occurrence of a value in an array. | Array |
| indexOf method (String) | Returns the character position where the first occurrence of a substring occurs within a String object. |
String |
| isPrototypeOf method | Returns a Boolean value that indicates whether an object exists in another object's prototype chain. | Multiple |
| italics method | Places HTML <I> tags around text. | String |
| item method | Returns the current item in the collection. | Enumerator |
| join method | Returns a String object consisting of all the elements of an array concatenated together. |
Array |
| lastIndexOf method (Array) | Returns the index of the last occurrence of a specified value in an array. | Array |
| lastIndexOf method (String) | Returns the last occurrence of a substring within a String object. |
String |
| lbound method | Returns the lowest index value used in the specified dimension of a VBArray. | VBArray |
| link method | Places an HTML anchor that has an HREF attribute around text. | String |
| localeCompare method | Returns a value indicating whether two strings are equivalent in the current locale. | String |
| map method | Calls a defined callback function on each element of an array, and returns an array that contains the results. | Array |
| match method | Returns, as an array, the results of a search on a string using a supplied Regular Expression object. | String |
| moveFirst method | Resets the current item in the collection to the first item. | Enumerator |
| moveNext method | Moves the current item to the next item in the collection. | Enumerator |
| pop method | Removes the last element from an array and returns it. | Array |
| propertyIsEnumerable method | Returns a Boolean value that indicates whether a specified property is part of an object and whether it is enumerable. | Multiple |
| push method | Appends new elements to an array, and returns the new length of the array. | Array |
| reduce method | Accumulates a single result by calling a defined callback function for all elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. | Array |
| reduceRight method | Accumulates a single result by calling a defined callback function for all elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function. | Array |
| replace method | Returns a copy of a string with text replaced using a regular expression. | String |
| reverse method | Returns an Array object with the elements reversed. |
Array |
| search method | Returns the position of the first substring match in a regular expression search. | String |
| setDate method | Sets the numeric day of the month using local time. | Date |
| setFullYear method | Sets the year value using local time. | Date |
| setHours method | Sets the hours value using local time. | Date |
| setMilliseconds method | Sets the milliseconds value using local time. | Date |
| setMinutes method | Sets the minutes value using local time. | Date |
| setMonth method | Sets the month value using local time. | Date |
| setSeconds method | Sets the seconds value using local time. | Date |
| setTime method | Sets the date and time value in the Date object. |
Date |
| setUTCDate method | Sets the numeric day of the month using UTC. | Date |
| setUTCFullYear method | Sets the year value using UTC. | Date |
| setUTCHours method | Sets the hours value using UTC. | Date |
| setUTCMilliseconds method | Sets the milliseconds value using UTC. | Date |
| setUTCMinutes method | Sets the minutes value using UTC. | Date |
| setUTCMonth method | Sets the month value using UTC. | Date |
| setUTCSeconds method | Sets the seconds value using UTC. | Date |
| setYear method | Sets the year value using local time. | Date |
| shift method | Removes the first element from an array and returns it. | Array |
| slice method (Array) | Returns a section of an array. | Array |
| slice method (String) | Returns a section of a string. | String |
| small method | Places HTML <SMALL> tags around text. | String |
| some method | Checks whether a defined callback function returns true for any element of an array. |
Array |
| sort method | Returns an Array object with the elements sorted. |
Array |
| splice method | Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements. | Array |
| split method | Returns the array of strings that results when a string is separated into substrings. | String |
| strike method | Places HTML <STRIKE> tags around text. | String |
| sub method | Places HTML <SUB> tags around text. | String |
| substr method | Returns a substring beginning at a specified location and having a specified length. | String |
| substring method | Returns the substring at a specified location within a String object. |
String |
| sup method | Places HTML <SUP> tags around text. | String |
| test method | Returns a Boolean value that indicates whether or not a pattern exists in a searched string. | Regular Expression |
| toArray method | Returns a standard JavaScript array converted from a VBArray. | VBArray |
| toDateString method | Returns a date as a string value. | Date |
| toExponential method | Returns a string containing a number represented in exponential notation. | Number |
| toFixed method | Returns a string representing a number in fixed-point notation. | Number |
| toGMTString method | Returns a date converted to a string using Greenwich Mean Time (GMT). | Date |
| toISOString method | Returns a date as a string value in ISO format. | Date |
| toJSON method | Used to transform data of an object type before the JSON serialization. | Date |
| toLocaleDateString method | Returns a date as a string value appropriate to the host environment's current locale. | Date |
| toLocaleLowerCase method | Returns a string where all alphabetic characters have been converted to lowercase, taking into account the host environment's current locale. | String |
| toLocaleString method | Returns an object converted to a string using the current locale. | Multiple |
| toLocaleTimeString method | Returns a time as a string value appropriate to the host environment's current locale. | Date |
| toLocaleUpperCase method | Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. | String |
| toLowerCase method | Returns a string where all alphabetic characters have been converted to lowercase. | String |
| toPrecision method | Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits. | Number |
| toString method | Returns a string representation of an object. | Multiple |
| toTimeString method | Returns a time as a string value. | Date |
| toUpperCase method | Returns a string where all alphabetic characters have been converted to uppercase. | String |
| toUTCString method | Returns a date converted to a string using UTC. | Date |
| trim method | Returns a string with leading and trailing white space and line terminator characters removed. | String |
| ubound method | Returns the highest index value used in the specified dimension of the VBArray. | VBArray |
| unshift method | Inserts new elements at the start of an array. | Array |
| valueOf method | Returns the primitive value of the specified object. | Multiple |
See Also
JavaScript Objects
JavaScript Functions
JavaScript Properties
JavaScript Constants
Version Information
JavaScript Reference

