Javascript

JavaScript Intro

JavaScript Intro Quiz

JavaScript Intro Exercise

JavaScript Basic

JavaScript Basic Quiz

JavaScript Basic Exercise

JavaScript Advance

JavaScript Advance Quiz

JavaScript Advance Exercise

JavaScript ES6

JavaScript ES6 Quiz

JavaScript ES6 Exercise

JavaScript Array Methods and Properties

JavaScript String Methods and Properties

JavaScript Number Methods and Properties

JavaScript Math Properties and Methods

JavaScript Date Methods and Properties

JavaScript Global Methods and Properties

JavaScript RegExp Properties and Methods

JavaScript Class Methods and Keywords

JavaScript Errors, JSON and Booleans

JavaScript Statements

JavaScript Window History Object Properties and Methods

JavaScript Window Location Object Properties and Methods

JavaScript Window Screen Object Properties

JavaScript Window Navigator Object Properties and Methods

JavaScript Window Object Properties and Methods

JavaScript Console Object Methods

JavaScript Geolocation and Storage APIs

JavaScript CSSStyleDeclaration Object Methods and Properties

HTML DOM Documents Object Properties and Methods

DOM HTMLCollection Properties and Methods

HTML DOM Attributes Properties and Methods

HTML DOM Elements Properties and Methods

HTML DOM Style Object Properties

HTML DOM AnimationEvent Properties and Methods

HTML DOM ClipboardEvent Properties and Methods

HTML DOM DragEvent Properties and Methods

HTML DOM FocusEvent Properties and Methods

HTML DOM HashChangeEvent Properties and Methods

HTML DOM InputEvent Properties and Methods

HTML DOM KeyboardEvent Properties and Methods

HTML DOM MouseEvent Properties and Methods

HTML DOM PageTransitionEvent Properties and Methods

HTML DOM ProgressEvent Properties and Methods

HTML DOM StorageEvent Properties and Methods

HTML DOM TransitionEvent Properties and Methods

HTML DOM WheelEvent Properties and Methods

HTML DOM UiEvent Properties and Methods

HTML DOM TouchEvent Properties and Methods

The Event Object Properties and Methods

JavaScript Window Object Properties and Methods

List of JavaScript Window Object Properties and Methods

Window alert() in JavaScript
The alert() method is used to display an alert box with a message and an OK button. It is done in order to send information to the user.
Window atob() in JavaScript
The atob() method is used to decode a base-64 encoded string. It is used to decode a string that has been encoded by the btoa() method.
Window blur() in JavaScript
The blur() method is used to remove focus from a window. It is the opposite of the focus() method in which we set focus on the window.
Window btoa() in JavaScript
The btoa() method is used to encode a base-64 string. It  uses the A-Z, a-z, 0-9, +, / and = characters to encode the string. Its opposite is atob() which is used to decode the base-64 string.
Window clearInterval() in JavaScript
The clearInterval() method is used to clear a timer set with the setInterval() method. For setting a function to execute after a certain amount of time, we use the setInterval() method.
Window clearTimeout() in JavaScript
The clearTimeout() method is used to clear a timer set with the setTimeout() method. Whenever we want a function to execute for once after a certain amount of time, we use the setTimeout() method.
Window close() in JavaScript
The close() method is used to close a window. Its opposite is the open() method which is used for the opening window.
Window confirm() in JavaScript
The confirm() method is used to display a dialog box with a message, OK button, and Cancel button. It returns true if the user clicked on the OK button else it will return false.
Window focus() in JavaScript
The focus() method is used to set focus to a window. It is the opposite of the blur() method in which we remove focus on the window.
Window getComputedStyle() in JavaScript
The getComputedStyle() method is used to get the computed CSS properties and values of an HTML element. It returns CSSStyleDeclaration object.
Window matchMedia() in JavaScript
The matchMedia() method is used to return a MediaQueryList with the results from the query. The media queries of the matchMedia() method is any media features of the CSS @media rule.
Window moveBy() in JavaScript
The moveBy() method is used to move a window a number of pixels relative to its current coordinates.
Window moveTo() in JavaScript
The moveTo() method is used to move a window to the specific coordinates.
Window open() in JavaScript
The open() method is used to open a new browser window or new tab. It depends on browser settings and the parameter values.
Window print() Method in JavaScript
The print() method is used to print the contents of the current window. It will open the Print Dialog Box in which users select preferred printing options.
Window prompt() in JavaScript
The prompt() method is used to display a dialog box that prompts the user for input. If the user clicks OK button, then it will return the user response i.e, their input else it will return null.
Window resizeBy() in JavaScript
The resizeBy() method is used for resizing windows by a specified amount. Its similar method is resizeTo().
Window resizeTo() in JavaScript
The resizeTo() method is used for resizing a window to a new width and height. Its similar method is resizeBy() method.
Window scrollBy() in JavaScript
The scrollBy() method is used for scrolling the document to the specified number of pixels. This property only works when the document is larger than the screen.
Window scrollTo() in JavaScript
The scrollTo() method is used for scrolling the document to the specified coordinates. This property only works when the document is larger than the screen.
Window setInterval() in JavaScript
The setInterval() method is used for calling a function at specified intervals in milliseconds. It continues calling the method until clearInterval() is called or otherwise, the window is closed.
Window setTimeout() in JavaScript
The setTimeout() method is used to call a function after a number of milliseconds. It will only call once and will not repeat like in setInterval().
Window stop() in JavaScript
The stop() method is used for stopping the window loading. It is the same as clicking the STOP button in the browser.
Window closed in JavaScript
The closed property is used to return true if the window is closed else it will return false. It is a read-only property.
Window Console Object in JavaScript
The console object is used to provide access to the browser debugging console. It is a very important property of the window object.
Window Document in JavaScript
The document object is the root node of the HTML document. It is a very important property of a window object.
Window frameElement in JavaScript
The frameElement property is used to return the frame in which the window runs. It returns NULL when the window does not run in the frame. It is a read-only property
Window frames in JavaScript
The frames property is used to return an array with all window objects in the window. We can access it by index numbers and the first index starts from 0. It is a read-only property.
Window History in JavaScript
The history object contains all the URLs that a user visits in the current browser window. It is a very important property of a window object.
Window innerHeight in JavaScript
The innerHeight property is used to return the height of a window content area. Some similar properties are innerWidth Property, outerWidth Property, and outerHeight Property.
Window innerWidth in JavaScript
The innerWidthproperty is used to return the width of a window content area. Some similar properties are innerHeight Property, outerWidth Property, and outerHeight Property. It is a read-only property.
Window length in JavaScript
The length property is used to return the number of window frames in the window. We can access each window by its index number. The first index starts from 0. It is a read-only property.
Window localStorage in JavaScript
The localStorage object is used to save key/value pairs in the browser. It allows us to do this without any expiration date on the localStorage object.
Window Location in JavaScript
The location object is used to contain information about the current URL. It is a very important object in the window object.
Window name in JavaScript
The name property is used for either setting the name of the window or returning the name of the window.
Window Navigator in JavaScript
The navigator object is used to contain information about the browser. It is a very important property of the window object.
Window opener Property in JavaScript
The opener property is used to return a reference to the window that created the window. In other words, if window aa opens window bb, then bb.opener returns aa.
Window outerHeight in JavaScript
The outerHeight property is used to return the outer height of the browser window which includes all interface elements like taskbars, toolbars, and scrollbars. It is a read-only property.
Window outerWidth in JavaScript
The outerWidth property is used to return the outer width of the browser window which includes all interface elements like taskbars, toolbars, and scrollbars. It is a read-only property.
Window pageXOffset in JavaScript
The pageXOffset property is used to return the pixels a document has scrolled from the top left corner of the window. This property is equal to the scrollX property. It is a read-only property.
Window pageYOffset in JavaScript
The pageYOffset property is used to return the pixels a document has scrolled from the upper left corner of the window. This property is equal to the scrollY property.
Window parent in JavaScript
The parent property is used for returning the parent window of the currently active window. It is a read-only property.
Window Screen in JavaScript
The screen object is used to contain information about the visitor screen. It is a very important property of a window object.
Window screenLeft in JavaScript
The screenLeft property is used to return the horizontal position of a window. It is relative to the screen. Its similar properties are screenTop Property, screenX Property, and screenY Property.
Window screenTop in JavaScript
The screenTop property is used to return the vertical position of a window. It is relative to the screen.
Window screenX in JavaScript
The screenX property is used to return the horizontal (x) coordinate of a window. It is relative to the screen. Its similar properties are screenTop Property, screenLeft Property, and screenY Property.
Window screenY in JavaScript
The screenY property is used to return the vertical (y) coordinate of a window. It is relative to the screen. Its similar properties are screenTop Property, screenLeft Property, and screenX Property.
Window sessionStorage in JavaScript
The sessionStorage object allows us to store data in the form of key/value pairs in the browser. It stores data for only one session and when the browser is closed, all the data present in the sessionStorage is deleted.
Window scrollX in JavaScript
The scrollX property is used to return the pixels a document has scrolled from the upper left corner of the window. This property is equal to the pageXOffset property. It is a read-only property.
Window scrollY in JavaScript
The scrollY property is used to return the pixels a document has scrolled from the upper left corner of the window. This property is equal to the pageYOffset property. It is a read-only property.
Window self Property in JavaScript
The self property is used to return the current window. We can use it for comparisons between different windows. It is a read-only property.
Window top Property in JavaScript
The top property is used to return the top most window in the current browser window. It is not similar to parent property and it will return the top most window in the window hierarchy.