| Method Name |
Description |
Syntax |
| Abs |
It belongs to the math object and returns unsigned number. |
Math.abs(number); |
| Acos |
It
belongs to the math object and returns cosine of a no in radians |
Math.acos(number); |
| Big |
Related
to string object and displays the associated string as large font. |
StringName.big(); |
| Blink |
Related
to string object and displays the associated string as blinking |
StringName.blink( ); |
| Blur |
Related
to input objects and is the programmatic way to
move the focus off a form object such as a text object. |
Password.blur( ); SelectName.blur( ); TextName.blur( ); |
| Ceil |
Related
to the math object and returns the nearest integer
that is equal to or greater than the given number. |
Math.ceil(number); |
| CharAt |
Belong
to the string object and returns the character found at the given index in the string. |
StringName.charAt(index); |
| Clear |
Belongs
to the document object and empties the contents of the document window. |
Document.clear( ); |
| Click |
It
simulates, programmatically, the visitor's click on a form object. |
Password.click( ); |
| Close |
Belongs
to the document object and closes the stream to an object and forces the layout. |
Document.close( ); |
| Confirm |
Belongs
to the window object and displays a small dialog
box with the message string and two buttons, OK and Cancel. |
Confirm("message"); |
| Escape |
Function
returns the ASCII encoded value for the given string. |
Escape("string"); |
| Eval |
Function
runs a JavaScript's expression, statement, function or sequence of statements. |
Eval("string"); |
| Exp |
Belongs to the math object and returns the value
equal to Euler's constant (e) raised to the power of the given number. |
Math.exp(number); |
| Focus |
Belongs to the input objects and allows you to programmatic
-ally move the focus to a form object. |
Password.focus( ); SelectName.focus( ); |
| Fontcolor |
Belongs to the string object and displays the associated
string in the given color |
StringName.fontcolor(colorkeyword); |
| Fontsize |
Displays the associated string at the given size |
StringName.fontsize(size); |
| Forward |
Belongs to history object. Uses the history list
to recall a previously viewed document that the
visitor has used the Back button or the back method to leave. |
History.forward( ); |
| GetDate |
The getDate method belongs to the date object and
returns the day of the month (0-31) for the given date. |
dateObjectName.getDate( ); |
| GetDay |
The getDay method belongs to the date object and
returns the day of the week (0-6) for the given date. |
dateObjectName.getDay( ); |
| GetHours |
The getHours method belongs to the date object and returns the hour (0-23) |
dateObjectName.getHours( ); |
| GetMinutes |
The getMinutes method belongs to the date object
and returns the minutes (0-59) for the given date |
dateObjectName.getMinutes( ); |
| GetMonths |
This method belongs to the date object and returns
the month (0-11) of the given date. |
dateObjectName.getMonth( ) ; |
| GetSeconds |
This method belongs to the date object and returns
the seconds (0-59) of the given date. |
dateObjectName.getSeconds( ); |
| GetTime |
This method belongs to the date object and returns
the time for the given date. |
dateObjectName.getTime( ); |
| GetYear |
This method belongs to the date
object and returns the year for the given date |
dateObjectName.getYear( ); |
| Go |
The go method belongs
to the history list to recall a previously viewed document. |
history.go(number); |
| Italics |
The italics method belongs to the string object
and displays the associated string as italics or oblique. |
stringName.italics( ); |
| Link |
The link method belongs to
the anchor object and creates a jump to a URL. |
LinkText.link(href Attribute); |
| Log |
It belongs to the maths object
and returns the natural logarithms (base e) of the given number. |
Math.log(number); |
| Max |
The max method belongs to the maths
object and returns the higher of two given numbers. |
Math.max(number1, number2); |
| Min |
It belongs to the maths object and returns the lower of two given numbers |
Math.min(number1, number2); |
| Open |
The open method for documents belongs to the window
object and opens an output destination for the write and writeln statements. |
document.open([" mimeType"]); |
| Parse |
The parse method belongs to the date object and
returns the number of milliseconds between a given date string and local time. |
january 1,1970 00:00:00 |
| ParseFloat |
The parseFloat function determines if a value is
a number and returns a floating point number for a string. |
ParseFloat(string); |
| ParseInt |
Determines if a value is a number
and returns an integer value of the given radix or base. |
ParseInt(string radius); |
| Pow |
Belong to the math object and returns the first
number raised to the power of the second number. |
Math.pow(base, onent); |
| Prompt |
The prompt method belongs to the window object and
displays a dialog box with a message and an input field. |
Prompt(message, [inputDefault]); |
|
Round |
The round method belongs to the math object and
returns the value of the number given to the nearest
interger. |
Math.round(number ); |
|
Select |
The select method performs an action programmatically.
It belongs to the password, text, and textarea object.
|
PasswordName.select( ); |
|
SetDate |
It belongs to the date object and sets the day of
the month for the given date. |
dateObjectName.setDate (dayvalue); |
| SetHours |
Sets the hour of the day for a given date. |
dateObjectName.setHours(hours value); |
|
SetMinutes |
Sets the minutes of the hour for a given date. |
dateObjectName.setMinutes(minutes value); |
|
SetMonths |
Sets the months of the months for a given date.
|
dateObjectName.setMonth(month value); |
|
SetSeconds |
Sets the seconds of the minutes for a given date.
|
dateObjectName.setSeconds(second value); |
|
Sin |
Returns the sine of the given number. |
Math.sin(number); |
|
Sqrt |
Returns the square root of the given number. |
Math.sqrt(number); |
|
Strike |
Displays the associated string with strikethrough.
|
StringName.strike( ); |
|
Sub |
Displays the associated string subscripted to the
rest of the text. |
StringName.sub( ); |
|
Submit |
It belongs to form object and submits a form. |
FormName.submit( ); |
|
Sup |
The sup method belongs to the string object and
displays the associated string as a superscript
to the surrounding text. |
StringName.sup( ); |
|
ToLocalString |
Belongs to the date object and converts a date to
a string, using the local conventions. |
DateObjectName.toLocalString( ); |
|
ToGMTString |
The toGMTString method belongs to the date object
and converts a date to a string, using the GMT conversions.
Format varies according to the vistor’s platform.
|
DateGMT.toLocalString( ); |
|
Write |
The write method belongs to the document object
and sends expressions to the document as encoded
HTML strings. |
Write(expression1 [,expression2 ] […expression N
]); |
|
Writeln |
The writeln method belongs to the document object
and sends expressions to the document encoded HTML
strings. |
Writeln(expression1 [,expression2] […expression
n]); |