Le langage JavaScript est conçu sur un paradigme simple basé sur des objets.
Un objet est construit à partir de propriétés, de méthodes et d'événements permettant de travailler sur tous les éléments d'une page HTML.
Objet | Propriétés | Méthodes | Evénements |
---|---|---|---|
a | hash host hostname href pathname port protocol search target text x y |
handleEvent | onClick onDblClick onKeyDown onKeyPress onKeyUp onMouseDown onMouseOut onMouseUp onMouseOver |
ActiveXObject | |||
Anchor | name text (Anchor) x y |
||
Area | hash host hostname href pathname port protocol search target text x y |
handleEvent | onDblClick onMouseOut onMouseOver |
Array | constructor index input length (Array) prototype |
concat (Array) join pop push reverse shift slice (Array) splice sort toSource toString unshift valueOf |
|
Boolean | constructor prototypet |
toSource toString valueOf |
|
Button | form name type value |
blur click focus handleEvent |
onBlur onClick onFocus onMouseDown onMouseUp |
Checkbox | checked defaultChecked form name type value |
blur click focus handleEvent |
onBlur onClick onFocus |
Date | constructor prototype |
getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getVarDate getYear parse setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toGMTString toLocaleString toSourcetoString toUTCString UTC valueOf |
|
Dictionary | Add Exists Items Keys Remove RemoveAll |
||
document | alinkColor anchors applets bgColor classes cookie domain embeds fgColor formName forms height ids images lastModified layers linkColor links plugins referrer tags title URL vlinkColor width |
captureEvents close contextual getSelection handleEvent open releaseEvents routeEvent write writeln |
onClick onDblClick onKeyDown onKeyPress onKeyUp onMouseDown onMouseUp |
Drive | AvailableSpace DriveLetter DriveType FileSystem FreeSpace IsReady Path RootFolder SerialNumber ShareName TotalSize VolumeName |
||
Drives | Count Item |
||
Enumerator | atEnd item moveFirst moveNext |
||
Error | description number |
||
Event | data height layerX layerY modifiers pageX pageY screenX screenY target type which width x y |
||
File | Attributes DateCreated DateLastAccessed DateLastModified Drive Name ParentFolder Path ShortName ShortPath Size Type |
Copy Delete Move OpenAsTextStream |
|
Files | Count Item |
||
FileSystemObject | Drives | BuildPath CopyFile CopyFolder CreateFolder CreateTextFile DeleteFile DeleteFolder DriveExists FileExists FolderExists GetAbsolutePathName GetBaseName GetDrive GetDriveName GetExtensionName GetFile GetFileName GetFolder GetParentFolderName GetSpecialFolder GetTempName MoveFile MoveFolder OpenTextFile |
|
FileUpload | form name type value |
blur focus handleEvent select |
onBlur onChange onFocus |
Folder | Attributes DateCreated DateLastAccessed DateLastModified Drive Files IsRootFolder Name ParentFolder Path ShortName ShortPath Size SubFolders Type |
Copy Delete Move OpenAsTextStream |
|
Folders | Count Item |
Add | |
Form | action elements encoding length method name target |
handleEvent reset submit |
onReset onSubmit |
Function | arguments arguments.callee arguments.caller arguments.length arity caller constructor length (Function) prototype |
apply call toSource toString valueOf |
|
Global | NaN (Global) Infinity |
escape eval isFinite isNaN parseFloat parseInt unescape |
|
hidden | form name type value |
||
History | current length next previous |
back forward go |
|
Image | border complete height vspace lowsrc name src vspace width |
handleEvent | onAbort onError onKeyDown onKeyPress onKeyUp onLoad |
JavaArray | length | toString | |
JavaClass | |||
JavaObject | length | toString | |
JavaPackage | |||
JSObject | call equals eval getMember getSlot getWindow removeMember setMember setSlot toString |
||
Layer | above background below bgColor clip.bottom clip.height clip.left clip.right clip.top clip.width document left name pageX pageY parentLayer siblingAbove siblingBelow src top visibility window x y zIndex |
captureEvents handleEvent load moveAbove moveBelow moveBy moveTo moveToAbsolute releaseEvents resizeBy resizeTo routeEvent |
onBlur onFocus onLoad onMouseOut onMouseOver |
Link | hash host hostname href pathname port protocol search target text x y |
handleEvent | onClick onDblClick onKeyDown onKeyPress onKeyUp onMouseDown onMouseOut onMouseOver onMouseUp |
Location | hash host hostname href pathname port protocol search |
reload replace |
|
Math | E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2 |
abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan |
|
MimeType | description enabledPlugin suffixes type |
||
navigator | appCodeName appName appVersion language mimeTypes platform plugins userAgent |
javaEnabled plugins.refresh preference savePreferences taintEnabled |
|
Number | constructor MAX_VALUE MIN_VALUE NaN (Number) NEGATIVE_INFINITY POSITIVE_INFINITY prototype |
toSource toString valueOf |
|
Object | constructor prototype |
eval toSource toString unwatch valueOf watch |
|
Option | defaultSelected index length selected text value |
||
Packages | className java netscape sun |
||
Password | defaultValue form name type value |
blur focus handleEvent select |
onBlur onFocus |
Plugin | description filename length name |
||
Radio | onBlur onClick onFocus |
checked defaultChecked form name type value |
blur click focus handleEvent |
RegExp | $1...$9 $_ $* $& $+ $` $' constructor global ignoreCase index input lastIndex lastMatch lastParen leftContext multiline prototype rightContext source |
compile exec test toSource toString valueOf |
|
Expression régulière |
lastIndex source |
compile exec test |
|
Reset | form name type value |
blur click focus handleEvent |
onBlur onClick onFocus |
screen | availHeight availLeft availTop availWidth colorDepth height pixelDepth width |
||
Select | form length name options selectedIndex type |
blur focus handleEvent |
onBlur onChange onFocus |
String | constructor length (String) prototype |
anchor big blink bold charAt charCodeAt concat (String) fixed fontcolor fontsize fromCharCode indexOf italics lastIndexOf link match replace search slice (String) small split strike sub substr substring sup toLowerCase toSourcetoString toUpperCase valueOf |
|
Style | align backgroundColor backgroundImage borderBottomWidth borderColor borderLeftWidth borderRightWidth borderStyle borderTopWidth clear color display fontFamily fontSize fontStyle fontWeight lineHeight listStyleType marginBottom marginLeft marginRight marginTop paddingBottom paddingLeft paddingRight paddingTop textAlign textDecoration textIndent textTransform whiteSpace width |
borderWidths margins paddings |
|
Submit | onBlur onClick onFocus |
form name type value |
blur click focus handleEvent |
Text | defaultValue form name type value |
blur focus handleEvent select |
onBlur onChange onFocus onSelect |
Textarea | defaultValue form name type value |
blur focus handleEvent select |
onBlur onChange onFocus onKeyDown onKeyPress onKeyUp onSelect |
TextStream | AtEndOfLine AtEndOfStream Column Line |
Close Read ReadAll ReadLine Skip SkipLine Write WriteBlankLines WriteLine |
|
VBArray | dimensions getItem lbound toArray ubound |
||
window | closed crypto defaultStatus document frames history innerHeight innerWidth length location locationbar menubar name offscreenBuffering opener outerHeight outerWidth pageXOffset pageYOffset parent personalbar screenX screenY scrollbars self status statusbar toolbar top window |
alert atob back blur btoa captureEvents clearInterval clearTimeout close confirm crypto.random crypto.signText disableExternalCapture enableExternalCapture find focus forward handleEvent home moveBy moveTo open prompt releaseEvents resizeBy resizeTo routeEvent scroll scrollBy scrollTo setHotKeys setInterval setResizable setTimeout setZOptions stop Propriétés pour l'objet Dictionary Count Item Key |
onBlur onDragDrop onError onFocus onLoad onMove onResize onUnload |