J.B. Dadet DIASOLUKA Luyalu Nzoyifuanga J AVA S C R I P T (Programmation Internet) V O L . V I I +243 - 851278216 - 899508675 - 991239212 - 902263541 - 813572818 La dernière révision de ce texte est disponible sur CD. CHAPITRE 13 : L’objet global « window » : L’objet global window est le conteneur de toutes les propriétés et fonctions globales et d’accès direct, c’est-à-dire accessibles sans le préfixe « window. » Pour obtenir les noms de toutes les propriétés propres d’un objet (ses propres méthodes = fonctions), qui n’appartiennent pas à son prototype, on utilise la méthode getOwnPropertyNames() de l’objet Object. Voici les 812 propriétés [et méthodes = fonctions] que ça donne à la console du navigateur Opéra pour l’objet [global] window. C’est comme un catalogue quand on veut utiliser une propriété de cet objet global window ou simplement connaître les propriétés globales disponibles. Object.getOwnPropertyNames(window) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII (812) ["Object", "Function", "Array", "Number", "parseFloat", "parseInt", "Infinity", "NaN", "undefined", "Boolean", "String", "Symbol", "Date", "Promise", "RegExp", "Error", "EvalError", "RangeError", "ReferenceError", "SyntaxError", "TypeError", "URIError", "JSON", "Math", "console", "Intl", "ArrayBuffer", "Uint8Array", "Int8Array", "Uint16Array", "Int16Array", "Uint32Array", "Int32Array", "Float32Array", "Float64Array", "Uint8ClampedArray", "DataView", "Map", "Set", "WeakMap", "WeakSet", "Proxy", "Reflect", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "unescape", "eval", "isFinite", "isNaN", "ByteLengthQueuingStrategy", "CountQueuingStrategy", "ReadableStream", "WritableStream", "USBOutTransferResult", "USBIsochronousOutTransferResult", "USBIsochronousOutTransferPacket", "USBIsochronousInTransferResult", "USBIsochronousInTransferPacket", "USBInTransferResult", "USBInterface", "USBEndpoint", "USBDevice", "USBConnectionEvent", "USBConfiguration", "USBAlternateInterface", "USB", "WebGLRenderingContext", "WebGL2RenderingContext", "Path2D", "CanvasPattern", "CanvasGradient", "webkitSpeechRecognitionEvent", "webkitSpeechRecognitionError", "webkitSpeechRecognition", "webkitSpeechGrammarList", "webkitSpeechGrammar", "SpeechSynthesisUtterance", "SpeechSynthesisEvent", "RemotePlayback", "PushSubscriptionOptions", "PushSubscription", "PushManager", "PresentationRequest", "PresentationReceiver", "PresentationConnectionList", "PresentationConnectionCloseEvent", "PresentationConnectionAvailableEvent", "PresentationConnection", "PresentationAvailability", "Presentation", "PermissionStatus", "Permissions", "PaymentResponse", "PaymentRequestUpdateEvent", "PaymentRequest", "PaymentAddress", "Notification", …] L’objet global « window » 2 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 1. [0 … 2. [100 3. [200 4. [300 5. [400 6. [500 7. [600 8. [700 9. [800 10. 11. JavaScript Tome-VII 99] … 199] … 299] … 399] … 499] … 599] … 699] … 799] … 811] length:812 __proto__:Array(0) 1. [0 … 99] 1. 0:"Object" 2. 1:"Function" 3. 2:"Array" 4. 3:"Number" 5. 4:"parseFloat" 6. 5:"parseInt" 7. 6:"Infinity" 8. 7:"NaN" 9. 8:"undefined" 10. 9:"Boolean" 11. 10:"String" 12. 11:"Symbol" 13. 12:"Date" 14. 13:"Promise" 15. 14:"RegExp" 16. 15:"Error" 17. 16:"EvalError" 18. 17:"RangeError" L’objet global « window » 3 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. JavaScript Tome-VII 18:"ReferenceError" 19:"SyntaxError" 20:"TypeError" 21:"URIError" 22:"JSON" 23:"Math" 24:"console" 25:"Intl" 26:"ArrayBuffer" 27:"Uint8Array" 28:"Int8Array" 29:"Uint16Array" 30:"Int16Array" 31:"Uint32Array" 32:"Int32Array" 33:"Float32Array" 34:"Float64Array" 35:"Uint8ClampedArray" 36:"DataView" 37:"Map" 38:"Set" 39:"WeakMap" 40:"WeakSet" 41:"Proxy" 42:"Reflect" 43:"decodeURI" 44:"decodeURIComponent" 45:"encodeURI" 46:"encodeURIComponent" 47:"escape" 48:"unescape" 49:"eval" 50:"isFinite" 51:"isNaN" 52:"ByteLengthQueuingStrategy" L’objet global « window » 4 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. JavaScript Tome-VII 53:"CountQueuingStrategy" 54:"ReadableStream" 55:"WritableStream" 56:"USBOutTransferResult" 57:"USBIsochronousOutTransferResult" 58:"USBIsochronousOutTransferPacket" 59:"USBIsochronousInTransferResult" 60:"USBIsochronousInTransferPacket" 61:"USBInTransferResult" 62:"USBInterface" 63:"USBEndpoint" 64:"USBDevice" 65:"USBConnectionEvent" 66:"USBConfiguration" 67:"USBAlternateInterface" 68:"USB" 69:"WebGLRenderingContext" 70:"WebGL2RenderingContext" 71:"Path2D" 72:"CanvasPattern" 73:"CanvasGradient" 74:"webkitSpeechRecognitionEvent" 75:"webkitSpeechRecognitionError" 76:"webkitSpeechRecognition" 77:"webkitSpeechGrammarList" 78:"webkitSpeechGrammar" 79:"SpeechSynthesisUtterance" 80:"SpeechSynthesisEvent" 81:"RemotePlayback" 82:"PushSubscriptionOptions" 83:"PushSubscription" 84:"PushManager" 85:"PresentationRequest" 86:"PresentationReceiver" 87:"PresentationConnectionList" L’objet global « window » 5 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 89. 90. ent" 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. JavaScript Tome-VII 88:"PresentationConnectionCloseEvent" 89:"PresentationConnectionAvailableEv 90:"PresentationConnection" 91:"PresentationAvailability" 92:"Presentation" 93:"PermissionStatus" 94:"Permissions" 95:"PaymentResponse" 96:"PaymentRequestUpdateEvent" 97:"PaymentRequest" 98:"PaymentAddress" 99:"Notification" 2. [100 … 199] 1. 100:"BudgetService" 2. 101:"XSLTProcessor" 3. 102:"VisualViewport" 4. 103:"FontFace" 5. 104:"SharedWorker" 6. 105:"SVGMPathElement" 7. 106:"SVGDiscardElement" 8. 107:"SVGAnimationElement" 9. 108:"ResizeObserverEntry" 10. 109:"ResizeObserver" 11. 110:"PerformancePaintTiming" 12. 111:"PerformanceNavigationTiming" 13. 112:"VRPlayerErrorEvent" 14. 113:"DetachedViewControlEvent" 15. 114:"DOMRectReadOnly" 16. 115:"DOMRect" 17. 116:"DOMQuad" 18. 117:"DOMPointReadOnly" 19. 118:"DOMPoint" 20. 119:"DOMMatrixReadOnly" L’objet global « window » 6 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. JavaScript Tome-VII 120:"DOMMatrix" 121:"webkitRTCPeerConnection" 122:"webkitMediaStream" 123:"WebSocket" 124:"WebGLVertexArrayObject" 125:"WebGLUniformLocation" 126:"WebGLTransformFeedback" 127:"WebGLTexture" 128:"WebGLSync" 129:"WebGLShaderPrecisionFormat" 130:"WebGLShader" 131:"WebGLSampler" 132:"WebGLRenderbuffer" 133:"WebGLQuery" 134:"WebGLProgram" 135:"WebGLFramebuffer" 136:"WebGLContextEvent" 137:"WebGLBuffer" 138:"WebGLActiveInfo" 139:"WaveShaperNode" 140:"TextEncoder" 141:"TextDecoder" 142:"SyncManager" 143:"SubtleCrypto" 144:"StorageManager" 145:"StorageEvent" 146:"Storage" 147:"StereoPannerNode" 148:"SourceBufferList" 149:"SourceBuffer" 150:"ServiceWorkerRegistration" 151:"ServiceWorkerContainer" 152:"ServiceWorker" 153:"ScriptProcessorNode" 154:"ScreenOrientation" L’objet global « window » 7 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. JavaScript Tome-VII 155:"Response" 156:"Request" 157:"RTCTrackEvent" 158:"RTCStatsReport" 159:"RTCSessionDescription" 160:"RTCRtpSender" 161:"RTCRtpReceiver" 162:"RTCRtpContributingSource" 163:"RTCPeerConnectionIceEvent" 164:"RTCPeerConnection" 165:"RTCIceCandidate" 166:"RTCDataChannelEvent" 167:"RTCDataChannel" 168:"RTCCertificate" 169:"Plugin" 170:"PluginArray" 171:"PhotoCapabilities" 172:"PeriodicWave" 173:"PannerNode" 174:"OverconstrainedError" 175:"OscillatorNode" 176:"OfflineAudioContext" 177:"OfflineAudioCompletionEvent" 178:"NetworkInformation" 179:"NavigationPreloadManager" 180:"MimeType" 181:"MimeTypeArray" 182:"MediaStreamTrackEvent" 183:"MediaStreamTrack" 184:"MediaStreamEvent" 185:"MediaStream" 186:"MediaStreamAudioSourceNode" 187:"MediaStreamAudioDestinationNode" 188:"MediaSource" 189:"MediaSettingsRange" L’objet global « window » 8 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. JavaScript Tome-VII 190:"MediaRecorder" 191:"MediaKeySystemAccess" 192:"MediaKeyStatusMap" 193:"MediaKeySession" 194:"MediaKeyMessageEvent" 195:"MediaEncryptedEvent" 196:"MediaElementAudioSourceNode" 197:"MediaDevices" 198:"MediaDeviceInfo" 199:"MIDIPort" 3. [200 … 299] 1. 200:"MIDIOutputMap" 2. 201:"MIDIOutput" 3. 202:"MIDIMessageEvent" 4. 203:"MIDIInputMap" 5. 204:"MIDIInput" 6. 205:"MIDIConnectionEvent" 7. 206:"MIDIAccess" 8. 207:"ImageCapture" 9. 208:"ImageBitmapRenderingContext" 10. 209:"IIRFilterNode" 11. 210:"IDBVersionChangeEvent" 12. 211:"IDBTransaction" 13. 212:"IDBRequest" 14. 213:"IDBOpenDBRequest" 15. 214:"IDBObjectStore" 16. 215:"IDBKeyRange" 17. 216:"IDBIndex" 18. 217:"IDBFactory" 19. 218:"IDBDatabase" 20. 219:"IDBCursorWithValue" 21. 220:"IDBCursor" 22. 221:"Headers" 23. 222:"GamepadEvent" L’objet global « window » 9 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. JavaScript Tome-VII 223:"Gamepad" 224:"GamepadButton" 225:"GainNode" 226:"EventSource" 227:"DynamicsCompressorNode" 228:"DeviceOrientationEvent" 229:"DeviceMotionEvent" 230:"DelayNode" 231:"DOMError" 232:"CryptoKey" 233:"Crypto" 234:"ConvolverNode" 235:"ConstantSourceNode" 236:"CloseEvent" 237:"ChannelSplitterNode" 238:"ChannelMergerNode" 239:"CanvasRenderingContext2D" 240:"CanvasCaptureMediaStreamTrack" 241:"CacheStorage" 242:"Cache" 243:"BroadcastChannel" 244:"BlobEvent" 245:"BiquadFilterNode" 246:"BeforeInstallPromptEvent" 247:"BatteryManager" 248:"BaseAudioContext" 249:"AudioScheduledSourceNode" 250:"AudioProcessingEvent" 251:"AudioParam" 252:"AudioNode" 253:"AudioListener" 254:"AudioDestinationNode" 255:"AudioContext" 256:"AudioBufferSourceNode" 257:"AudioBuffer" L’objet global « window » 10 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. JavaScript Tome-VII 258:"AnalyserNode" 259:"postMessage" 260:"blur" 261:"focus" 262:"close" 263:"XPathResult" 264:"XPathExpression" 265:"XPathEvaluator" 266:"XMLSerializer" 267:"XMLHttpRequestUpload" 268:"XMLHttpRequestEventTarget" 269:"XMLHttpRequest" 270:"XMLDocument" 271:"Worker" 272:"Window" 273:"WheelEvent" 274:"ValidityState" 275:"VTTCue" 276:"URLSearchParams" 277:"URL" 278:"UIEvent" 279:"TreeWalker" 280:"TransitionEvent" 281:"TrackEvent" 282:"TouchList" 283:"TouchEvent" 284:"Touch" 285:"TimeRanges" 286:"TextTrackList" 287:"TextTrackCueList" 288:"TextTrackCue" 289:"TextTrack" 290:"TextMetrics" 291:"TextEvent" 292:"Text" L’objet global « window » 11 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 94. 95. 96. 97. 98. 99. 100. JavaScript Tome-VII 293:"TaskAttributionTiming" 294:"StyleSheetList" 295:"StyleSheet" 296:"StaticRange" 297:"ShadowRoot" 298:"Selection" 299:"SecurityPolicyViolationEvent" 4. [300 … 399] 1. 300:"Screen" 2. 301:"SVGViewElement" 3. 302:"SVGUseElement" 4. 303:"SVGUnitTypes" 5. 304:"SVGTransformList" 6. 305:"SVGTransform" 7. 306:"SVGTitleElement" 8. 307:"SVGTextPositioningElement" 9. 308:"SVGTextPathElement" 10. 309:"SVGTextElement" 11. 310:"SVGTextContentElement" 12. 311:"SVGTSpanElement" 13. 312:"SVGSymbolElement" 14. 313:"SVGSwitchElement" 15. 314:"SVGStyleElement" 16. 315:"SVGStringList" 17. 316:"SVGStopElement" 18. 317:"SVGSetElement" 19. 318:"SVGScriptElement" 20. 319:"SVGSVGElement" 21. 320:"SVGRectElement" 22. 321:"SVGRect" 23. 322:"SVGRadialGradientElement" 24. 323:"SVGPreserveAspectRatio" 25. 324:"SVGPolylineElement" 26. 325:"SVGPolygonElement" L’objet global « window » 12 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. JavaScript Tome-VII 326:"SVGPointList" 327:"SVGPoint" 328:"SVGPatternElement" 329:"SVGPathElement" 330:"SVGNumberList" 331:"SVGNumber" 332:"SVGMetadataElement" 333:"SVGMatrix" 334:"SVGMaskElement" 335:"SVGMarkerElement" 336:"SVGLinearGradientElement" 337:"SVGLineElement" 338:"SVGLengthList" 339:"SVGLength" 340:"SVGImageElement" 341:"SVGGraphicsElement" 342:"SVGGradientElement" 343:"SVGGeometryElement" 344:"SVGGElement" 345:"SVGForeignObjectElement" 346:"SVGFilterElement" 347:"SVGFETurbulenceElement" 348:"SVGFETileElement" 349:"SVGFESpotLightElement" 350:"SVGFESpecularLightingElement" 351:"SVGFEPointLightElement" 352:"SVGFEOffsetElement" 353:"SVGFEMorphologyElement" 354:"SVGFEMergeNodeElement" 355:"SVGFEMergeElement" 356:"SVGFEImageElement" 357:"SVGFEGaussianBlurElement" 358:"SVGFEFuncRElement" 359:"SVGFEFuncGElement" 360:"SVGFEFuncBElement" L’objet global « window » 13 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. ent" 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. JavaScript Tome-VII 361:"SVGFEFuncAElement" 362:"SVGFEFloodElement" 363:"SVGFEDropShadowElement" 364:"SVGFEDistantLightElement" 365:"SVGFEDisplacementMapElement" 366:"SVGFEDiffuseLightingElement" 367:"SVGFEConvolveMatrixElement" 368:"SVGFECompositeElement" 369:"SVGFEComponentTransferElement" 370:"SVGFEColorMatrixElement" 371:"SVGFEBlendElement" 372:"SVGEllipseElement" 373:"SVGElement" 374:"SVGDescElement" 375:"SVGDefsElement" 376:"SVGComponentTransferFunctionElem 377:"SVGClipPathElement" 378:"SVGCircleElement" 379:"SVGAnimatedTransformList" 380:"SVGAnimatedString" 381:"SVGAnimatedRect" 382:"SVGAnimatedPreserveAspectRatio" 383:"SVGAnimatedNumberList" 384:"SVGAnimatedNumber" 385:"SVGAnimatedLengthList" 386:"SVGAnimatedLength" 387:"SVGAnimatedInteger" 388:"SVGAnimatedEnumeration" 389:"SVGAnimatedBoolean" 390:"SVGAnimatedAngle" 391:"SVGAnimateTransformElement" 392:"SVGAnimateMotionElement" 393:"SVGAnimateElement" 394:"SVGAngle" L’objet global « window » 14 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 96. 97. 98. 99. 100. JavaScript Tome-VII 395:"SVGAElement" 396:"Range" 397:"RadioNodeList" 398:"PromiseRejectionEvent" 399:"ProgressEvent" 5. [400 … 499] 1. 400:"ProcessingInstruction" 2. 401:"PopStateEvent" 3. 402:"PointerEvent" 4. 403:"PerformanceTiming" 5. 404:"PerformanceResourceTiming" 6. 405:"PerformanceObserverEntryList" 7. 406:"PerformanceObserver" 8. 407:"PerformanceNavigation" 9. 408:"PerformanceMeasure" 10. 409:"PerformanceMark" 11. 410:"PerformanceLongTaskTiming" 12. 411:"PerformanceEntry" 13. 412:"Performance" 14. 413:"PageTransitionEvent" 15. 414:"NodeList" 16. 415:"NodeIterator" 17. 416:"NodeFilter" 18. 417:"Node" 19. 418:"Navigator" 20. 419:"NamedNodeMap" 21. 420:"MutationRecord" 22. 421:"MutationObserver" 23. 422:"MutationEvent" 24. 423:"MouseEvent" 25. 424:"MessagePort" 26. 425:"MessageEvent" 27. 426:"MessageChannel" 28. 427:"MediaQueryListEvent" L’objet global « window » 15 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. JavaScript Tome-VII 428:"MediaQueryList" 429:"MediaList" 430:"MediaError" 431:"Location" 432:"KeyboardEvent" 433:"IntersectionObserverEntry" 434:"IntersectionObserver" 435:"InputEvent" 436:"InputDeviceCapabilities" 437:"ImageData" 438:"ImageBitmap" 439:"IdleDeadline" 440:"History" 441:"HashChangeEvent" 442:"HTMLVideoElement" 443:"HTMLUnknownElement" 444:"HTMLUListElement" 445:"HTMLTrackElement" 446:"HTMLTitleElement" 447:"HTMLTimeElement" 448:"HTMLTextAreaElement" 449:"HTMLTemplateElement" 450:"HTMLTableSectionElement" 451:"HTMLTableRowElement" 452:"HTMLTableElement" 453:"HTMLTableColElement" 454:"HTMLTableCellElement" 455:"HTMLTableCaptionElement" 456:"HTMLStyleElement" 457:"HTMLSpanElement" 458:"HTMLSourceElement" 459:"HTMLSlotElement" 460:"HTMLShadowElement" 461:"HTMLSelectElement" 462:"HTMLScriptElement" L’objet global « window » 16 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 64. 65. 66. 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. JavaScript Tome-VII 463:"HTMLQuoteElement" 464:"HTMLProgressElement" 465:"HTMLPreElement" 466:"HTMLPictureElement" 467:"HTMLParamElement" 468:"HTMLParagraphElement" 469:"HTMLOutputElement" 470:"HTMLOptionsCollection" 471:"Option" 472:"HTMLOptionElement" 473:"HTMLOptGroupElement" 474:"HTMLObjectElement" 475:"HTMLOListElement" 476:"HTMLModElement" 477:"HTMLMeterElement" 478:"HTMLMetaElement" 479:"HTMLMenuElement" 480:"HTMLMediaElement" 481:"HTMLMarqueeElement" 482:"HTMLMapElement" 483:"HTMLLinkElement" 484:"HTMLLegendElement" 485:"HTMLLabelElement" 486:"HTMLLIElement" 487:"HTMLInputElement" 488:"Image" 489:"HTMLImageElement" 490:"HTMLIFrameElement" 491:"HTMLHtmlElement" 492:"HTMLHeadingElement" 493:"HTMLHeadElement" 494:"HTMLHRElement" 495:"HTMLFrameSetElement" 496:"HTMLFrameElement" 497:"HTMLFormElement" L’objet global « window » 17 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 99. 100. JavaScript Tome-VII 498:"HTMLFormControlsCollection" 499:"HTMLFontElement" 6. [500 … 599] 1. 500:"HTMLFieldSetElement" 2. 501:"HTMLEmbedElement" 3. 502:"HTMLElement" 4. 503:"HTMLDocument" 5. 504:"HTMLDivElement" 6. 505:"HTMLDirectoryElement" 7. 506:"HTMLDialogElement" 8. 507:"HTMLDetailsElement" 9. 508:"HTMLDataListElement" 10. 509:"HTMLDataElement" 11. 510:"HTMLDListElement" 12. 511:"HTMLContentElement" 13. 512:"HTMLCollection" 14. 513:"HTMLCanvasElement" 15. 514:"HTMLButtonElement" 16. 515:"HTMLBodyElement" 17. 516:"HTMLBaseElement" 18. 517:"HTMLBRElement" 19. 518:"Audio" 20. 519:"HTMLAudioElement" 21. 520:"HTMLAreaElement" 22. 521:"HTMLAnchorElement" 23. 522:"HTMLAllCollection" 24. 523:"FormData" 25. 524:"FontFaceSetLoadEvent" 26. 525:"FocusEvent" 27. 526:"FileReader" 28. 527:"FileList" 29. 528:"File" 30. 529:"EventTarget" 31. 530:"Event" L’objet global « window » 18 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. JavaScript Tome-VII 531:"ErrorEvent" 532:"Element" 533:"DragEvent" 534:"DocumentType" 535:"DocumentFragment" 536:"Document" 537:"DataTransferItemList" 538:"DataTransferItem" 539:"DataTransfer" 540:"DOMTokenList" 541:"DOMStringMap" 542:"DOMStringList" 543:"DOMParser" 544:"DOMImplementation" 545:"DOMException" 546:"CustomEvent" 547:"CustomElementRegistry" 548:"CompositionEvent" 549:"Comment" 550:"ClipboardEvent" 551:"CharacterData" 552:"CSSSupportsRule" 553:"CSSStyleSheet" 554:"CSSStyleRule" 555:"CSSStyleDeclaration" 556:"CSSRuleList" 557:"CSSRule" 558:"CSSPageRule" 559:"CSSNamespaceRule" 560:"CSSMediaRule" 561:"CSSKeyframesRule" 562:"CSSKeyframeRule" 563:"CSSImportRule" 564:"CSSGroupingRule" 565:"CSSFontFaceRule" L’objet global « window » 19 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu 67. 68. 69. 70. 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. JavaScript Tome-VII 566:"CSS" 567:"CSSConditionRule" 568:"CDATASection" 569:"Blob" 570:"BeforeUnloadEvent" 571:"BarProp" 572:"Attr" 573:"ApplicationCacheErrorEvent" 574:"ApplicationCache" 575:"AnimationEvent" 576:"WebKitCSSMatrix" 577:"frames" 578:"self" 579:"window" 580:"WebKitMutationObserver" 581:"webkitURL" 582:"WebKitAnimationEvent" 583:"WebKitTransitionEvent" 584:"parent" 585:"opener" 586:"top" 587:"length" 588:"closed" 589:"location" 590:"document" 591:"origin" 592:"name" 593:"history" 594:"locationbar" 595:"menubar" 596:"personalbar" 597:"scrollbars" 598:"statusbar" 599:"toolbar" L’objet global « window » 20 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII 7. [600 … 699] 1. 600:"status" 2. 601:"frameElement" 3. 602:"navigator" 4. 603:"applicationCache" 5. 604:"customElements" 6. 605:"external" 7. 606:"screen" 8. 607:"innerWidth" 9. 608:"innerHeight" 10. 609:"scrollX" 11. 610:"pageXOffset" 12. 611:"scrollY" 13. 612:"pageYOffset" 14. 613:"screenX" 15. 614:"screenY" 16. 615:"outerWidth" 17. 616:"outerHeight" 18. 617:"devicePixelRatio" 19. 618:"clientInformation" 20. 619:"event" 21. 620:"offscreenBuffering" 22. 621:"screenLeft" 23. 622:"screenTop" 24. 623:"defaultStatus" 25. 624:"defaultstatus" 26. 625:"styleMedia" 27. 626:"onanimationend" 28. 627:"onanimationiteration" 29. 628:"onanimationstart" 30. 629:"onsearch" 31. 630:"ontransitionend" 32. 631:"onwebkitanimationend" 33. 632:"onwebkitanimationiteration" L’objet global « window » 21 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII 34. 35. 633:"onwebkitanimationstart" 634:"onwebkittransitionend" 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 635:"isSecureContext" 636:"onabort" 637:"onblur" 638:"oncancel" 639:"oncanplay" 640:"oncanplaythrough" 641:"onchange" 642:"onclick" 643:"onclose" 644:"oncontextmenu" 645:"oncuechange" 646:"ondblclick" 647:"ondrag" 648:"ondragend" 649:"ondragenter" 650:"ondragleave" 651:"ondragover" 652:"ondragstart" 653:"ondrop" 654:"ondurationchange" 655:"onemptied" 656:"onended" 657:"onerror" 658:"onfocus" 659:"oninput" 660:"oninvalid" 661:"onkeydown" 662:"onkeypress" 663:"onkeyup" 664:"onload" 665:"onloadeddata" 666:"onloadedmetadata" 667:"onloadstart" L’objet global « window » 22 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII 69. 70. 668:"onmousedown" 669:"onmouseenter" 71. 72. 73. 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. 670:"onmouseleave" 671:"onmousemove" 672:"onmouseout" 673:"onmouseover" 674:"onmouseup" 675:"onmousewheel" 676:"onoperacustomcontrol" 677:"onoperadetachedviewchange" 678:"onoperavrplayerchange" 679:"onoperavrplayererror" 680:"onpause" 681:"onplay" 682:"onplaying" 683:"onprogress" 684:"onratechange" 685:"onreset" 686:"onresize" 687:"onscroll" 688:"onseeked" 689:"onseeking" 690:"onselect" 691:"onstalled" 692:"onsubmit" 693:"onsuspend" 694:"ontimeupdate" 695:"ontoggle" 696:"onvolumechange" 697:"onwaiting" 698:"onwheel" 699:"onauxclick" 8. [700 … 799] 1. 700:"ongotpointercapture" L’objet global « window » 23 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII 2. 701:"onlostpointercapture" 3. 702:"onpointerdown" 4. 703:"onpointermove" 5. 704:"onpointerup" 6. 705:"onpointercancel" 7. 706:"onpointerover" 8. 707:"onpointerout" 9. 708:"onpointerenter" 10. 709:"onpointerleave" 11. 710:"onafterprint" 12. 711:"onbeforeprint" 13. 712:"onbeforeunload" 14. 713:"onhashchange" 15. 714:"onlanguagechange" 16. 715:"onmessage" 17. 716:"onmessageerror" 18. 717:"onoffline" 19. 718:"ononline" 20. 719:"onpagehide" 21. 720:"onpageshow" 22. 721:"onpopstate" 23. 722:"onrejectionhandled" 24. 723:"onstorage" 25. 724:"onunhandledrejection" 26. 725:"onunload" 27. 726:"performance" 28. 727:"stop" 29. 728:"open" 30. 729:"alert" 31. 730:"confirm" 32. 731:"prompt" 33. 732:"print" 34. 733:"requestAnimationFrame" 35. 734:"cancelAnimationFrame" 36. 735:"requestIdleCallback" L’objet global « window » 24 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII 37. 38. 736:"cancelIdleCallback" 737:"captureEvents" 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 738:"releaseEvents" 739:"getComputedStyle" 740:"matchMedia" 741:"moveTo" 742:"moveBy" 743:"resizeTo" 744:"resizeBy" 745:"getSelection" 746:"find" 747:"webkitRequestAnimationFrame" 748:"webkitCancelAnimationFrame" 749:"btoa" 750:"atob" 751:"setTimeout" 752:"clearTimeout" 753:"setInterval" 754:"clearInterval" 755:"createImageBitmap" 756:"scroll" 757:"scrollTo" 758:"scrollBy" 759:"onappinstalled" 760:"onbeforeinstallprompt" 761:"caches" 762:"crypto" 763:"ondevicemotion" 764:"ondeviceorientation" 765:"ondeviceorientationabsolute" 766:"indexedDB" 767:"webkitStorageInfo" 768:"sessionStorage" 769:"localStorage" 770:"fetch" L’objet global « window » 25 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII 72. 73. 771:"visualViewport" 772:"speechSynthesis" 74. 75. 76. 77. 78. 79. 80. 81. 82. 83. 84. 85. 86. 87. 88. 89. 90. 91. 92. 93. 94. 95. 96. 97. 98. 99. 100. 773:"webkitRequestFileSystem" 774:"webkitResolveLocalFileSystemURL" 775:"openDatabase" 776:"chrome" 777:"WebAssembly" 778:"opr" 779:"Clipboard" 780:"Credential" 781:"CredentialsContainer" 782:"FederatedCredential" 783:"MediaKeys" 784:"PasswordCredential" 785:"dir" 786:"dirxml" 787:"profile" 788:"profileEnd" 789:"clear" 790:"table" 791:"keys" 792:"values" 793:"debug" 794:"undebug" 795:"monitor" 796:"unmonitor" 797:"inspect" 798:"copy" 799:"queryObjects" 9. [800 … 811] 1. 2. 3. 4. 800:"$_" 801:"$0" 802:"$1" 803:"$2" L’objet global « window » 26 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII 5. 804:"$3" 6. 805:"$4" 7. 806:"getEventListeners" 8. 807:"monitorEvents" 9. 808:"unmonitorEvents" 10. 809:"$" 11. 810:"$$" 12. 811:"$x" 10. 11. length:812 __proto__:Array(0) L'objet window (tout minuscule) n’a pas de prototype propre. L’objet window minuscules n’a qu'un pointeur (__proto__) sur le prototype de son constructeur, l'objet Window (notez la capitalisation). Avec Firefox : window.__proto__ WindowPrototype { … } WindowPrototype constructor: function () constructor: () length: 0 name: "Window" prototype: WindowPrototype constructor: function () L’objet global « window » 27 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII __proto__: WindowProperties { } Symbol(Symbol.hasInstance): undefined __proto__: function () __proto__: WindowProperties { } Avec Yandex : window.__proto__ Window {TEMPORARY: 0, PERSISTENT: 1, constructor: ƒ, Symbol(Symbol.toStringTag): "Window"} 1st Window {TEMPORARY: 0, PERSISTENT: 1, constructor: ƒ, Symbo l(Symbol.toStringTag): "Window"} A PERSISTENT:1 B TEMPORARY:0 C constructor:ƒ Window() D Symbol(Symbol.toStringTag):"Window" E __proto__:WindowProperties Tentative d’obtenir la liste des Propriétés du prototype des objets window (avec “w” minuscule) et Window (avec “W” Majuscule) : window.prototype undefined L’objet global « window » 28 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII WindowPrototype { … } constructor: function () __proto__: WindowProperties { } __proto__: EventTargetPrototype { addEventListener: addEventListener(), removeEventListener: removeEventListener(), dispatchEvent: dispatchEvent(), … } addEventListener: function addEventListener() constructor: function () dispatchEvent: function dispatchEvent() removeEventListener: function removeEventListener() __proto__: Object { … } Object.getOwnPropertyDescriptor(window,"prototype") undefined Object.getOwnPropertyDescriptor(Window,"prototype") Object { value: WindowPrototype, writable: false, enumerable: false, configurable: false } {…} configurable: false enumerable: false value: WindowPrototype { … } constructor: function () L’objet global « window » 29 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII __proto__: WindowProperties { writable: false } __proto__: Object { … } window.hasOwnProperty("prototype") false Window.hasOwnProperty("prototype") true window.prototype.constructor TypeError: window.prototype is undefined Window.prototype.constructor () length: 0 name: "Window" prototype: WindowPrototype { … } Symbol(Symbol.hasInstance): undefined __proto__: function () Remarque importante : L’objet global « window » 30 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII Ce n’est pas nécessaire de connaître/retenir toutes ces propriétés par cœur. Pour les obtenir tapez seulement « window » ou « window.__proto__ » au prompt de la console de n’importe quel navigateur récent. La propriété length d’une méthode donne une «hints» quant au nombre de paramètres prévus. En JavaScript, on peut utiliser plus ou moins que le nombre des paramètres prévus, mais pour les méthodes il convient mieux de respecter le nombre [et bien sûr l’ordre] des paramètres prévus. Chaque navigateur a/affiche une liste légèrement différente. Mots-clés : objet global , propriétés, fonctions globales, accès direct, méthodesgetOwnPropertyNames, objet Object, parseFloat, parseInt, Infinity, NaN, undefined, Boolean, String, Symbol, Date, Promise, RegExp mardi, 2. octobre 2018 (12:03 ). DIASOLUKA Nz. Luyalu Docteur en Médecine, Chirurgie & Accouchements (1977), CNOM : 0866 - Spécialiste en ophtalmologie (1980) Informaticien-amateur, Programmeur et WebMaster. Chercheur indépendant, autonome et autofinancé, bénévole, sans aucun conflit d’intérêt ou liens d'intérêts ou contrainte L’objet global « window » 31 / 32 mardi, 2. octobre 2018 (12:03 ) J.D.B. DIASOLUKA Nz. Luyalu JavaScript Tome-VII promotionnelle avec qui qu’il soit ou quelqu’organisme ou institution / organisation que ce soit, étatique, paraétatique ou privé, industriel ou commercial en relation avec le sujet présenté. +243 - 851278216 - 899508675 - 995624714 - 902263541 - 813572818 diasfb mail2world.com L’objet global « window » 32 / 32 mardi, 2. octobre 2018 (12:03 )