| escape(s) |
encode a string s for transmission |
| eval(s) |
execute JavaScript code from the string s |
| getClass(javaobj) |
returns the class of a JavaObject javaobj |
| isFinite(n) |
returns true if n is a finite number |
| isNaN(n) |
returns true if n is Not a Number |
| parseFloat(s) |
convert a string s into a numeric value |
| parseInt(s) |
convert a string s to an decimal integer |
| parseInt(s, radix) |
convert a string s to an integer,
radix is the base for conversion |
| unescape(s) |
decode an escaped string s (gotten through transmission) |
| hash |
the anchor specification of current URL |
| href |
the complete current URL |
hostname, pathname, port, protocol |
the hostname, pathname, port and protocol
portions of current URL, resp. |
| host |
the hostname and port portions of current URL |
| search |
the query portion of the current URL |
| |
| Member Functions |
| reload(force) |
cause document to reload |
| replace(url) |
replace current document with one from url. |
| Constants |
| E |
the mathematical constant e |
| LN10 |
the mathematical constant loge10 |
| LN2 |
the mathematical constant loge2 |
| LOG10E |
the mathematical constant log10e |
| LOG2E |
the mathematical constant log2e |
| PI |
the mathematical constant pi |
| SQRTI2 |
the mathematical constant 1/sqrt(2) |
| SQRT2 |
the mathematical constant sqrt(2) |
| |
| Static functions i.e. Math.function |
| abs(x) |
absolute value of x |
| acos(x) |
arc cosine of x |
| asin(x) |
arc sin of x |
| atan(x) |
arc tangent of x |
| atan2(x,y) |
angle (in radians) from x axis to pint (x,y) |
| ceil(x) |
round x up to nearest integer |
| cos(x) |
cosine of x |
| exp(x) |
ex |
| floor(x) |
round x down to nearest integer |
| log(x) |
logex |
| max(x,y) |
maximum of x and y |
| min(x,y) |
minimum of x and y |
| pow(x,y) |
xy |
| random() |
a psuedo-random number |
| round(x) |
round x to nearest integer |
| sin(x) |
sine of x |
| tan(x) |
tangent of x |
| Constructors | |
| new Date() |
| new Date (milliseconds) |
| new Date (datestring) |
| new Date (year, month) |
| new Date (year, month, day) |
| new Date (year, month, day, hour) |
| new Date (year, month, day, hour, minute) |
| new Date (year, month, day, hour, minute, sec) |
| new Date (year, month, day, hour, minute, sec, ms) |
| |
| Member Functions |
| getDate() |
return the day of the month. |
| getDay() |
return the day of the week. |
| getFullYear() |
return the year (local time). |
| getHours() |
return the hours field of a Date. |
| getMilliseconds() |
return the milliseconds field of a Date (local time). |
| getMinutes() |
return the minutes field of a Date. |
| getMonth() |
return the month of a Date. |
| getSeconds() |
return the seconds field of a Date. |
| getTime() |
return a Date in milliseconds. |
| getTimezoneOffset() |
determine the offset from GMT. |
| setDate(day_of_month) |
set the day of the month of a Date |
| setDay(day) |
set the day of the week of a Date |
| setFullYear(year) |
set the year (local time) of a Date |
| setHours(hours) |
set the hours field of a Date. |
| setMilliseconds(milliseconds) |
set the milliseconds field of a Date (local time). |
| setMonth(month) |
set the month of a Date. |
| setSeconds(seconds) |
set the seconds field of a Date. |
| setTime(milliseconds) |
set a complete Date from milliseconds. |
| toLocaleString() |
convert a Date to a string. |
| toString() |
convert a Date to a string. |
| valueOf() |
convert a Date to a number. |
| |
| Static Functions i.e. Date.function |
| parse(datestring) |
return a Date from a datestring |
| length |
the length of a string |
| |
| Member functions |
| anchor(name) |
Add an HTML anchor to a string. |
| big() |
Make a string <BIG>. |
| blink() |
Make a string <BLINK>. |
| bold() |
Make a string bold with <B>. |
| charAt(n) |
Get the n-th character from a string. |
| charCodeAt(n) |
Get the n-tth character code from a string. |
| concat(value, . . .) |
Concatenate strings. |
| fixed() |
Make a string fixed-width with <TT>. |
| indexOf(substring, start) |
Search a string. |
| italicsQ |
Make a string italic with <I>. |
| lastlndexOf(substring, start) |
Search a string backward. |
| link(bref) |
Add a hypertext link to a string. |
| match(regexp) |
Find one or more regular expression matches |
| replaceregexp (replacement) |
Replace substring(s) matching a regular expression. |
| search (regexp) |
Search for a regular expression. |
| slice(start, end) |
Extract a substring. |
| small() |
Make a string <SMALL>. |
| split(delimiter) |
Break a string into an array of string. |
| strike() |
Strike out a string with <STRIKE> |
| subO |
Make a string a subscript with <SUB> |
| substring(from, to) |
Return a substring of a string. |
| substr(start, length) |
Extract a substring |
| sup() |
Make a string a superscript with <SUP> |
| toLowerCase() |
Convert a string to lowercase. |
| toUpperCase() |
Convert a string to uppercase. |
| |
| Static Functions i.e. String.function |
| fromCharCode(cl, c2, . . .) |
Create a string from character encodings. |