/windowObjectIn-JS

Explore JavaScript's Window Object subobjects! 🪟📚 Discover a curated list with MDN links, revealing browser capabilities from storage to rendering. Enhance your understanding of the browser environment. Created for developers interested in diving deeper.

MIT LicenseMIT

Subobjects of the Window Object in JavaScript

my image

📘 Welcome to the documentation of various subobjects within the window object in JavaScript.

🌐 The window object is a global entity representing the browser window or tab, offering a myriad of functionalities for web development.

Table of Contents

Introduction

🌟 The window object is a cornerstone in web browsers, serving as a container for diverse subobjects, each tailored for specific roles. Gaining insights into these subobjects can significantly augment your prowess in crafting dynamic and interactive web applications.

List of Subobjects

  • window (global object)
    • document: Represents the DOM of the current web page.
    • console: Provides methods for interacting with the browser console.
    • localStorage: Allows data storage on the client side.
    • sessionStorage: Similar to localStorage, but data is session-specific.
    • navigator: Provides information about the user's browser and system.
    • location: Contains information about the current URL.
    • history: Allows manipulation of the browser's history.
    • screen: Provides information about the user's screen.
    • frames: Refers to the frames within the current window.
    • parent: Refers to the parent window or frame.
    • top: Refers to the top-level browsing context.
    • self: Refers to the current browsing context.
    • XMLHttpRequest: Used for making HTTP requests.
    • AudioContext: Handles audio processing and synthesis.
    • Video: Represents a video element for playback.
    • WebRTC: Enables real-time communication via web browsers.
    • WebSocket: Provides full-duplex communication channels over a single TCP connection.
    • Math: Provides mathematical functions and constants.
    • Date: Allows working with dates and times.
    • Object: The base object for all JavaScript objects.
    • Array: Represents a collection of elements in a specific order.
    • String: Represents a sequence of characters.
    • Number: Represents a numeric value.
    • Boolean: Represents a true or false value.
    • Error: Represents an error object.
    • Function: Represents a function in JavaScript.
    • Promise: Represents a value that might be available in the future.
    • JSON: Provides methods for working with JSON data.
    • Map: Represents a collection of key-value pairs.
    • Set: Represents a collection of unique values.
    • Symbol: Represents a unique and immutable value.
    • RegExp: Represents a regular expression pattern.
    • Image: Represents an image element for display.
    • Audio: Represents an audio element for playback.
    • Worker: Enables running JavaScript in a background thread.
    • Intl: Provides internationalization support for formatting and parsing.
    • Blob: Represents binary data.
    • DataView: Represents a low-level view of binary data.
    • Event: Represents an event that occurs in the DOM.
    • EventTarget: Represents an object that can receive events.
    • File: Represents a file selected by the user.
    • URL: Provides methods for working with URLs.
    • URLSearchParams: Represents query parameters in a URL.
    • Crypto: Provides cryptographic functionality.
    • GlobalEventHandlers: Represents an object that can handle events globally.
    • Selection: Represents the user's text selection in a document.
    • KeyboardEvent: Represents a keyboard event.
    • MouseEvent Represents a event for the mouse.
    • RTCDataChannel: Represents a channel for sending data over WebRTC.
    • RTCPeerConnection: Represents a connection between two peers in WebRTC.
    • Performance: Provides timing and performance-related information.
    • IndexedDB: Provides a local database for storing structured data.
    • Intl.Collator: Provides string comparison with language-sensitive collation.
    • Intl.DateTimeFormat: Provides localized date and time formatting.
    • Intl.NumberFormat: Provides localized number formatting.
    • TextDecoder: Decodes text from binary data using a specified encoding.
    • TextEncoder: Encodes text into binary data using a specified encoding.
    • WebAssembly: Represents WebAssembly modules and instances.
    • ServiceWorker: Enables the use of background scripts to handle network requests.
    • SpeechRecognition: Enables speech recognition capabilities.
    • SpeechSynthesis: Enables speech synthesis capabilities.
    • Clipboard: Provides access to the clipboard for copying and pasting.
    • MediaStream: Represents a stream of media content.
    • FileSystem: Represents the file system for web applications.
    • EventSource: Represents a connection to a server-sent events stream.
    • Camera: Represents a camera for capturing video or images.
    • AudioTrack: Represents an audio track in a media stream.
    • VideoTrack: Represents a video track in a media stream.
    • MediaRecorder: Records media streams, such as audio and video.
    • HTMLCanvasElement: Represents a canvas element for 2D rendering.
    • HTMLImageElement: Represents an image element for display.
    • HTMLAudioElement: Represents an audio element for playback.
    • HTMLVideoElement: Represents a video element for playback.
    • HTMLIFrameElement: Represents an inline frame element for embedding other documents.
    • HTMLFormElement: Represents a form element for collecting user input.
    • HTMLInputElement: Represents an input element for user data entry.
    • HTMLTextAreaElement: Represents a textarea element for multiline text input.
    • HTMLSelectElement: Represents a select element for dropdown menus.
    • HTMLOptionElement: Represents an option element within a select element.
    • HTMLButtonElement: Represents a button element for user interaction.
    • HTMLAnchorElement: Represents an anchor element for hyperlinks.
    • HTMLMediaElement: Represents a base class for media-related elements (audio, video).
    • HTMLScriptElement: Represents a script element for executing JavaScript code.
    • HTMLStyleElement: Represents a style element for embedding CSS styles.
    • HTMLLinkElement: Represents a link element for external resources (CSS, etc.).
    • HTMLMetaElement: Represents a meta element for document metadata.
    • HTMLTitleElement: Represents a title element for the document's title.
    • HTMLHeadElement: Represents the head element containing metadata.
    • HTMLDivElement: Represents a division element for grouping content.
    • HTMLSpanElement: Represents a span element for inline content styling.
    • HTMLParagraphElement: Represents a paragraph element for text grouping.
    • HTMLHeadingElement: Represents heading elements (h1 to h6) for headings.
    • TouchEvent: Represents a touch event on a touch-enabled device.
    • WebGLRenderingContext: Provides access to the WebGL graphics rendering context.
    • WebGL2RenderingContext: Provides access to the WebGL 2 graphics rendering context.
    • RTCDataChannel: The RTCDataChannel interface represents a network channel which can be used for bidirectional peer-to-peer transfers of arbitrary data. Every data channel is associated with an RTCPeerConnection, and each peer connection can have up to a theoretical maximum of 65,534 data channels (the actual limit may vary from browser to browser).

Usage

✨ Each subobject within the window object boasts a unique collection of properties and methods, empowering you to engage with distinct facets of web development. For further details, consult the corresponding subobject sections.

Contributing

🤝 Your contributions are highly valued! If you identify any inaccuracies or desire to enrich information about a specific subobject, please consider submitting a pull request.

License

📄 This repository is licensed under the MIT License. You are free to utilize and distribute the content as you see fit.

Contact

📧 Should you have any queries or suggestions, don't hesitate to get in touch: