JavaScript Resources
 
 
Categories
Misc

beginners php
programmershelp
programmingsite
software directory
Low Cost domains
Mobile phone business
Free stuff


 

Stores

 

 

JavaScript Methods

 

Method Object Description
abs(x) Math absolute value of a number
acos(x) Math Arccosine
alert(text) Window produces a dialog box with the report "Text" and a OK-Button
asin(x) Math Arcsines
atan(x) Math Arctangents
atan2(x,y) Math supply the angle between the connection line form the coordinate origin to the point (x,y) and the x-axis
back() History loads the previous URL of the History list
big() String corresponds with the HTML Tag BIG
blink() String corresponds with the HTML Tag BLINK
blur() Password, Select, Text, Textarea removes the focus of the concerning object
bold() String corresponds with the HTML-Tag B
ceil(x) Math grows to the next big complete Number
charAt(n) String supplies the (n-1)st letter of the string
clearTimeout(...) Frame, Window deletes a Timeout-setting, which has been supplied before with the Timeout- Method
click() Button, Checkbox, Radio, Reset, Submit simulates a mouse click onto the allocated object
close() Document, Window closes the concern object
confirm(text) Window supplies a dialog box with the report "Text", as well as a OK- Button and a Cancel-Button
cos(x) Math Cosines
current History the URL of the current entry of the History-List
eval(...) (all objects) executes the as argument of the function declared sign string as JavaScript-Code
exp(x) Math Exponential function
fixed() String corresponds with the HTML-Tag TT
floor(x) Math grows to the next smaller complete Number
focus() Password, Select, Text, Textarea puts the focus onto the concerned object
fontcolor(...) String corresponds with the HTML-Tag FONT COLOR=
fontsize(...) String corresponds with the HTML-Tag FONT SIZE=
forward() History loads the next url in the History-List
getDate() Date supplies the Day of the Month of the concerned date object
getDay() Date supplies the Day of the concerned date-object
getHours() Date supplies the hour of the concerned date-object
getMinutes() Date supplies the minute of the concerned date-object
getMonth() Date supplies the month of the concerned date-object
getSeconds() Date supplies the second of the concerned date-object
getTime() Date supplies the Number which represents the time of the concerned date-object
getTimezoneOffset() Date supplies the time zone-shift of the current position
getYear() Date supplies the year of the concerned date-object
go(nURL) History loads a URL of the History-List
indexOf(...) String searches the Position of letters or letter-groups inside a string
italics(...) String corresponds with the HTML-Tag I
javaEnabled() Navigator specifies the fact, if the carrying out of Java-Applets is possible or not
join(...) Array unites all elements of a array in a string. the string, specified in the argument, serves here the separate-sign
lastIndexOf(...) String see IndexOf(...)
link(...) String produces a Hypertext-Link
log(x) Math natural logarithm
max(x,y) Math supplies the bigger of two values
min(x,y) Math supplies the smaller of two values
open() Document, Window opens the concerned object
parse() Date calculates the difference of a date to the 1. Jan 1990 0 Hour in Milliseconds
pow(x,y) Math x ^ y
prompt(...) Window supplies a dialog box in a input field
random() Math supplies a random-number between 0 and 1
refresh() Plugins makes new installed Plugins available
reload(URL) Location forces a renewed loading of the current document
replace(URL) Location replaces the current entry in the History-List with the specified URL
reset() Form simulates a mouse click at the Reset-Switch of the concerned form
reverse Array turns back the indication-order of the array
round(x) Math grows to the nearest complete number
select() Password, Text, Textarea serves the Choice of the Position, on this its possible to make changes at the User-inputs
setDate(...) Date places the day of the Month of the concerned date-object
setHours(...) Date places the hour of the concerned date-object
setMinutes(...) Date places the minute of the concerned date-object
>setMonth(...) Date places the month of the concerned date-object
setSeconds(...) Date places the second of the concerned date-object
setTime(...) Date places the Time of the concerned date-object
setTimeout(...) Frame, Window carries out a instruction, after a prescribed time is passed
setYear(...) Date places the year of the concerned date-object
sin(x) Math Sinus
small(...) String corresponds with the HTML-Tag SMALL
sort() Array sorts the elements of the array
split(...) String reduces the concerned string in sub strings, which are stored as elements of a array. the in the argument specified string serves here as a sign-sign
sqrt(x) Math square root
strike(...) String corresponds with the HTML-Tag STRIKE
sub(...) String corresponds with the HTML-Tag SUB
submit() Form has the same effect as a mouse click to a Submit-button of a form
substring(n1,n2) String forms a sub string, whose positions prescribes two numbers in the original string
sup(...) String corresponds with the HTML-Tag SUP
taintEnabled() Navigator gives information whether the date-tainting is active or not
tan(x) Math Tangent
toGMTString() Date converts a date-object to a string with the look at the GMT-Convention
toLocalString() Date converts the date-object to a string with the look at the current position
toLowerCase(...) String produces a string which contains only small letters
toString() (all objects) produces a string which represent the concerned object
toUpperCase(...) String produces a string which contains only capital letters
UTC(...) Date supplies the time which is passed since the 1. Jan 1970 00:00 Hour until the date-object in the argument (in milliseconds)
valueOf() (all objects) supplies the value of the concerned object
write(...) Document distributes a text in the browser window
writeln(...) Document distributes a text with a closing line-formatting in the browser window

 

 

 

© 2003 onwards programmershelp