JavaScript Methods Index

Index Reference

A

abs: Returns the absolute value of a number.

acos: Returns the arccosine (in radians) of a number.

anchor: Creates an HTML anchor that is used as a hypertext target.

apply: Allows you to apply the method of another object in the context of a different object (the calling object).

asin: Returns the arcsine (in radians) of a number.

atan: Returns the arctangent (in radians) of a number.

atan2: Returns the arctangent of the quotient of its arguments.

B

big: Causes a string to be displayed in a big font as if it were in a BIG tag.

blink: Causes a string to blink as if it were in a BLINK tag.

bold: Causes a string to be displayed as if it were in a B tag.

C

call: Allows you to call (execute) a method of another object in the context of a different object (the calling object).

ceil: Returns the smallest integer greater than or equal to a number.

charAt: Returns the character at the specified index.

charCodeAt: Returns a number indicating the Unicode value of the character at the given index.

concat: Joins two arrays/strings and returns a new array/string.

  • concat - Array Object method.
  • concat - String Object method.

cos: Returns the cosine of a number.

D

decodeURI: Decodes a URI which has been encoded with encodeURI.

decodeURIComponent: Decodes a URI which has been encoded with encodeURIComponent.

E

encodeURI: Computes a new version of a complete URI replacing each instance of certain characters with escape sequences representing the UTF-8 encoding of the characters.

encodeURIComponent: Computes a new version of components in a URI replacing each instance of certain characters with escape sequences representing the UTF-8 encoding of the characters.

eval: Evaluates a string of JavaScript code without reference to a particular object.

  • eval - Top-Level function.
  • eval - Object Object method.

every: Tests whether all elements in the array pass the test implemented by the provided function.

exec: Executes a search for a match in its string parameter.

exp: Returns Enumber, where number is the argument, and E is Euler's constant, the base of the natural logarithms.

F

filter: Creates a new array with all of the elements of the current array for which the provided filtering function returns true.

fixed: Causes a string to be displayed in fixed-pitch font as if it were in a TT tag.

floor: Returns the largest integer less than or equal to a number.

fontcolor: Causes a string to be displayed in the specified color as if it were in a <FONT COLOR="color"> tag.

fontsize: Causes a string to be displayed in the specified font size as if it were in a <FONT SIZE="size"> tag.

forEach: Calls a function for each element in the array.

fromCharCode: Returns a string created by using the specified sequence of Unicode values. This is a method on the String class, not on a String instance.

G

getDate: Returns the day of the month for the specified date according to local time.

getDay: Returns the day of the week for the specified date according to local time.

getFullYear: Returns the year of the specified date according to local time.

getHours: Returns the hour in the specified date according to local time.

getMilliseconds: Returns the milliseconds in the specified date according to local time.

getMinutes: Returns the minutes in the specified date according to local time.

getMonth: Returns the month in the specified date according to local time.

getSeconds: Returns the seconds in the specified date according to local time.

getTime: Returns the numeric value corresponding to the time for the specified date according to local time.

getTimezoneOffset: Returns the time-zone offset in minutes for the current locale.

getUTCDate: Returns the day (date) of the month in the specified date according to universal time.

getUTCDay: Returns the day of the week in the specified date according to universal time.

getUTCFullYear: Returns the year in the specified date according to universal time.

getUTCHours: Returns the hours in the specified date according to universal time.

getUTCMilliseconds: Returns the milliseconds in the specified date according to universal time.

getUTCMinutes: Returns the minutes in the specified date according to universal time.

getUTCMonth: Returns the month in the specified date according to universal time.

getUTCSeconds: Returns the seconds in the specified date according to universal time.

getYear  : Returns the year in the specified date according to local time.

I

indexOf: Returns the first index at which a given element can be found in the array/string, or -1 if it is not present.

isFinite: Evaluates an argument to determine whether it is a finite number.

isNaN: Evaluates an argument to determine whether it is not a number.

italics: Causes a string to be italic, as if it were in an I tag.

J

join: Joins all elements of an array into a string.

L

lastIndexOf: Returns the last index at which a given element can be found in the array/string, or -1 if it is not present.

link: Creates an HTML hypertext link that requests another URL.

log: Returns the natural logarithm (base E) of a number.

M

map: Creates a new array with the results of calling a provided function on every element in this array.

match: Used to match a regular expression against a string.

max: Returns the greater of two numbers.

min: Returns the lesser of two numbers.

N

Number: Converts an object to a number.

P

parse: Returns the number of milliseconds in a date since January 1, 1970, 00:00:00, local time.

parseFloat: Parses a string argument and returns a floating-point number.

parseInt: Parses a string argument and returns an integer.

pop: Removes the last element from an array and returns that element.

pow: Returns base to the exponent power, that is, base exponent.

push: Adds one or more elements to the end of an array and returns the new length of the array.

R

random: Returns a pseudo-random number between 0 and 1.

replace: Used to find a match between a regular expression and a string, and to replace the matched substring with a new substring.

reverse: Reverses the order of the elements of an array -- the first becomes the last, and the last becomes the first.

round: Returns the value of a number rounded to the nearest integer.

S

search: Executes the search for a match between a regular expression and a specified string.

setDate: Sets the day of the month for a specified date according to local time.

setFullYear: Sets the full year for a specified date according to local time.

setHours: Sets the hours for a specified date according to local time.

setMilliseconds: Sets the milliseconds for a specified date according to local time.

setMinutes: Sets the minutes for a specified date according to local time.

setMonth: Sets the month for a specified date according to local time.

setSeconds: Sets the seconds for a specified date according to local time.

setTime: Sets the value of the Date object according to local time.

setUTCDate: Sets the day of the month for a specified date according to universal time.

setUTCFullYear: Sets the full year for a specified date according to universal time.

setUTCHours: Sets the hour for a specified date according to universal time.

setUTCMilliseconds: Sets the milliseconds for a specified date according to universal time.

setUTCMinutes: Sets the minutes for a specified date according to universal time.

setUTCMonth: Sets the month for a specified date according to universal time.

setUTCSeconds: Sets the seconds for a specified date according to universal time.

setYear  : Sets the year for a specified date according to local time.

shift: Removes the first element from an array and returns that element.

sin: Returns the sine of a number.

slice: Extracts a section of an array/string and returns a new array/string.

  • slice - Array Object method.
  • slice - String Object method.

small: Causes a string to be displayed in a small font, as if it were in a SMALL tag.

some:Tests whether some element in the array passes the test implemented by the provided function.

sort: Sorts the elements of an array.

splice: Adds and/or removes elements from an array.

split: Splits a String object into an array of strings by separating the string into substrings.

sqrt: Returns the square root of a number.

strike: Causes a string to be displayed as struck-out text, as if it were in a STRIKE tag.

String: Converts and object to a string.

sub: Causes a string to be displayed as a subscript, as if it were in a SUB tag.

substr: Returns the characters in a string beginning at the specified location through the specified number of characters.

substring: Returns the characters in a string between two indexes into the string.

sup: Causes a string to be displayed as a superscript, as if it were in a SUP tag.

T

tan: Returns the tangent of a number.

test: Tests for a match in its string parameter.

toExponential: Returns a string representing the number in exponential notation.

toFixed: Returns a string representing the number in fixed-point notation.

toGMTString : Converts a date to a string, using the Internet GMT conventions.

toLocaleString: Converts a date to a string, using the current locale's conventions.

toLocaleDateString: Returns the "date" portion of the Date as a string, using the current locale's conventions.

toLocaleTimeString: Returns the "time" portion of the Date as a string, using the current locale's conventions.

toLowerCase: Returns the calling string value converted to lowercase.

toPrecision: Returns a string representing the number to a specified precision in fixed-point notation.

toSource: Returns a string representing the source code of the array/function/object.

toString: Returns a string representing the specified object/function/JavaArray (and its elements).

toUpperCase: Returns the calling string value converted to uppercase.

toUTCString: Converts a date to a string, using the universal time convention.

U

unshift: Adds one or more elements to the front of an array and returns the new length of the array.

unwatch: Removes a watchpoint from a property of the object.

UTC: Returns the number of milliseconds in a Date object since January 1, 1970, 00:00:00, universal time.

V

valueOf: Returns the primitive value of the specified object/function.

W

watch: Adds a watchpoint to a property of the object.

See also

Document Tags and Contributors

Tags:
Contributors to this page: NickolayBot, Dria, Sevenspade, fscholz, Prodoc
Last updated by: fscholz,