|
Object
|
Properties
|
Method(s)
|
| Basic
JavaScript |
Top |
|
|
Prototype
|
getDate,
getDay, getHours, getMinutes, getSeconds, getMonth, getTime,
getYear, getMilliseconds (JavaScript 1.3)
|
| Document |
alink
Color,
anchors, applets, bgColor, cookie, fgColor, images, lastModified,
linkColor, links, referrer, title, URL, vlinkColor
|
close,
open, write, writeln |
| Window |
closed,
defaultStatus, document, frames, history, location, locationbar,
menubar, name, opener, parent, self, status, statusbar,
toolbar, top, window
|
alert,
back, close, confirm, find, forward, home, open, print,
prompt, scroll, stop
|
| Navigator |
appCodeName,
appName, AppVersion, language, mimeTypes, platform, plugins,
userAgent
|
javaEnabled,
plugins.refresh, preference
|
| |
| Basic
Events |
Top |
|
Event
|
Trigger
|
Associated
Tag
|
|
onBlur
|
The
user moves off the object by moving the mouse pointer or
tabbing.
|
<button>,
<input>, <label>, <select>, <textarea>
|
| onChange |
The
user alters the contents of the object
|
<input>,
<select>, <textarea>
|
| onClick |
The
user clicks the mouse button on the object.
|
Most
Tags.
|
| onDblClick |
The
user double-clicks the mouse on the object.
|
Most
Tags.
|
| onFocus |
The
user moves the object either by mouse movement or tabbing.
|
<button>,
<input>, <label>, <select>, <textarea>
|
| onKeyDown |
The
users presses a key over the object.
|
Most
tags.
|
| onKeyPress |
The
user presses and releases a key over the object.
|
Most
tags.
|
| onKeyUP |
The
user releases a key over the object.
|
Most
tags.
|
| onLoad |
The
browser finishes loading a window or all the frames
within
a <frameset>.
|
<body>,
<frameset>
|
| onMouseDown |
The
user presses the button on the mouse while the pointer is
over the object.
|
Most
tags.
|
| onMouseMove |
The
user moves the pointer while it is positioned over the object
(different fr9om onMouseOver).
|
Most
tags.
|
| onMouseOut |
The
user moves the pointer off, or away from, the object.
|
Most
tags.
|
| onMouseOver |
The
user moves the pointer onto the object.
|
Most
tags.
|
| onMouseUp |
The
user releases the mouse button over the object.
|
Most
tags.
|
| onReset |
The
user activates the reset control
|
<form>
|
| onSelect |
The
user selects some text in a text field.
|
<input>,
<textarea>
|
| onSubmit |
The
user activates the submit control.
|
<form>
|
| onUnload |
The
browser removes the element from the window or frame.
|
<body>,
<frameset>
|
| onAbort |
The
user aborted the loading of a Web page. |
<body> |
| onError |
The
JavaScript interpreter encountered a script error |
<body> |
| |
|
|
Top |
| Method |
Explanation |
| navigator.javaEnabled() |
Returns true if the browser supports Java
applets and false if it doesn't. |
| navigator.plugins.refresh |
Creates an array, plug-ins[], that lists
all the installed plug-ins. |
| navigator.preference() |
Checks or sets user preferences. |
| navigator. savePreferences () |
Saves user preferences. |
| navigator.taintEnabled() |
Returns
true if the data-tainting security model is supported
and enabled (deprecated in Navigator
version 4) |
|
| |
| Navigator
Properties |
Top |
| Property |
Meaning
/ Use |
| navigator.appCodeName |
The coded name of the browser. |
| navigator.appName |
The name of the browser. |
| navigator.appVersion |
The version of the browser. |
| navigator.language |
The language supported by
the browser; currently supported only by Navigator 4+. |
| navigator.mimeTypes[] |
An array of all the plug-ins
that are installed in the browser; currently supported
only by Navigator 4+. |
| navigator.platform |
The platform on which the
browser is running. |
| navigator.plugins[] |
An
array of all the plug-ins that are installed in the
browser; currently supported
only by Navigator 4+. |
| navigator. systemLanguage |
The
system-level language code; currently supported only
by Explorer 4+. |
| navigator.userAgent |
The string passed to the browser
as the http user agent in the request. |
| navigator.userLanguage |
Like navigator.language, but
this is the Explorer 4+ version. |
|
| |
| Conditional
Operators |
Top |
| Operator |
Meaning |
| == |
is equal to |
| != |
is not equal to |
| < |
is less than |
| > |
is greater than |
| <= |
is less than or equal to |
| >= |
is greater than or equal to |
|
| |
| |
|
More to come.......Keep checking
back. |
| |
| |
|
| |
| |
|
|